Super Guess small Case Brief introduction
- Next, do a very comprehensive small case---super guess
Master
- Versatile use of buttons
- The meaning of @2x
- Application icon, start picture add
Status bar
- In IOS7, the status bar is managed by default by the controller, such as the style of the status bar, whether the status bar is visible
- The controller controls the status bar by overriding the following methods
- Set the style of the status bar
(Uistatusbarstyle) Preferredstatusbarstyle;
Where Uistatusbarstylelightcontent is a white style
- Set the visibility of the status bar
-(BOOL) Prefersstatusbarhidden;
Retina screen
- The so-called retain screen, is the HD Retina screen, resolution width is twice times the standard screen resolution
-
Equipment |
Screen type |
Screen size |
Resolution |
IPhone 3GS |
Non-retina |
3.5 inch |
320x480 |
Iphone4\4s |
Retina |
3.5 inch |
640x960 |
Iphone5\5c\5s |
Retina |
4 inch |
640x1136 < |
Application icon
- As long as the filename is called icon.png, it is automatically used as an icon for the application.
- An application can prepare a variety of icons, details can be viewed Apple official documents, such as the right image
Application Startup pictures
- An app will display a full-screen image called Default.png during startup
- Use cases without the specification default
Default.png: Non-retina-iphone screen, 320x480
[Email protected]:retina-iphone screen, 640x960
[Email protected]:4inch retina-iphone screen, 640x1136
Default-portrait~ipad.png: Non-retain-ipad vertical screen, 768x1024
[Email protected]:retain-ipad vertical screen, 1536x2048
Default-landscape~ipad.png: Non-retain-ipad horizontal screen, 1024x768
[Email protected]:retain-ipad horizontal screen, 2048x1536
UIButton
- UIButton has a number of States, it provides a number of convenient properties, you can directly get the current state of text, text color, pictures, etc.
- @property (Nonatomic,readonly,retain) NSString *currenttitle;
- @property (Nonatomic,readonly,retain) Uicolor *currenttitlecolor;
- @property (Nonatomic,readonly,retain) UIImage *currentimage;
- @property (Nonatomic,readonly,retain) UIImage *currentbackgroundimage;
09-Super Guessing chart