[iOS Weibo project-1.8]-Various sizes picture loading & control not showing research

Source: Internet
Author: User

A. loading of pictures: [UIImage imagenamed:@ "Home"]; Loading PNG pictures

One, non-retina screen
1, 3.5 inch (480 x)
* Home.png

Second, Retina screen
1, 3.5 inch (640 x 960)
* [Email protected]

2, 4.0 inch (640 x 1136)
* [Email protected] (automatic loading is supported if home is the startup image of the program)

Three, example (the following conditions are automatically loaded system)
1. Home is the boot image
* IPhone 1\3G\3GS-3.5 inch non-Retina:home.png
* IPhone 4\4s-3.5 inch Retina: [Email protected]
* IPhone 5\5S\5C-4.0 inch Retina: [Email protected]

2. Home is not the boot image
* IPhone 1\3G\3GS-3.5 inch non-Retina:home.png
* IPhone 4\4s-3.5 inch Retina: [Email protected]
* IPhone 5\5S\5C-4.0 inch Retina: [Email protected]

3. Summary
home.png:3.5 inch Non-retina
* [email protected]: retina
* [Email protected]: 4.0 inch retina + boot image


B. Create a control that is invisible
1. The current control is not added to the parent control
2. Hidden = YES for the current control
3. Alpha <= of the current control 0.01
4. No size set (Frame.size, Bounds.size)
5. The position is not correct (the current control is displayed outside the window)
6. Background color is Clearcolor
7. The current control is blocked by other visible controls
8. The current control is a control that displays pictures (no picture is set \ Picture does not exist, such as Uiimageview)
9. The current control is a control that displays text (no text \ text color follows the background color, such as Uilabel, UIButton)
10. Check the first 9 cases of the parent control

A control can see, but nothing happens when clicked:
1. userinteractionenabled of the current control = NO
2. Enabled = NO for the current control
3. The current control is not within the bounds of the parent control
4. The current control is blocked by a control with a background color of clearcolor
5. Check the first 4 cases of the parent control
6 .....
The text input box is not on the main window: text input box text cannot be entered

[iOS Weibo project-1.8]-Various sizes picture loading & control not showing research

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.