Every time Apple releases a system, developers are busy working for a while, updating xcode to adapt to the new system: for example, ios4 supports retain and requires @ 2x; for example, ios5 does not support udid; for example, iOS 6 and iPhone 5 face the following problems.
1. Add retina 4 launch image, and you will be prompted when running the project.
Click Add directly at this time. A default-568h@2x.png black image will be created:
If this parameter is not added, the program will be running with black borders.
Effect after adding
In this case, I would like to say that when the first time transparency says that we want to add such a picture to the group, my first response is: Isn't there a black picture when the program starts? However, my program does not need to start the graph. This worry is unnecessary only when you add this image. It is estimated that Apple has made some optimizations. when it determines that the image is a black image, it will be skipped directly.
2. Group Table view background color is deprecated in IOS 6.0
When using the background color, the color that comes with my favorite system is: "group table view background color ". Now that the color is gone, you can change it to another color.
3. About multiple targets
Upload File, drag it to the corresponding "Copy bundle resources.
Note that when multiple targets are running on the simulator, they are not as convenient as they were before. You can directly switch the configuration file to run them. When testing different target representations, in addition to switching the configuration file, you also need to clear the simulator ~
4. xcode4.5 no longer supports armv6, that is, systems below ios4.3.3.
Unsupported hardware devices include: IPOD 2nd Gen, iPhone 3G or older iPhone
For example, the error message during packaging is:
Warning: IOS deployment targets lower than 4.3 are not supported (current iphoneos_deployment_target = "4.0", archs = "armv7 ").
(Null): iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following Architecture (s) must be present: armv6 (-19033)
Because I like to use block, I developed Dongdong, which generally supports ios4.0 at the lowest level. It seems that Apple is forcing developers and users to upgrade. 5. Provide a piece of code to determine the iPhone # define iphone5 ([uiscreen instancesrespondtoselector: @ selector (currentmode)]? Cgsizeequaltosize (cgsizemake (640,113 6), [[uiscreen mainscreen] currentmode]. Size): No) You can use if (iphone5) ooxx directly. In addition, if the code is written to the interface, the view height in iPhone 5 is 568 ~ 6. If your interface contains scrollview/tableview by default, you do not need to change the interface because the middle branch is automatically stretched. If these two full-screen controls are not included, you may need to add another XIB for iPhone 5. The method is simple. Create an XIB file and set the View Size to retina 4 full screen. I have already mentioned how to judge iPhone 5 and how to read different XIB files without using code? 7. for more information about screen rotation (this time when ios5 came out), you also need to do some experiments yourself. ios6 canceled an API, two APIs are added, but this addition does not satisfy my situation: the application is a portrait screen on all interfaces, and only a landscape screen is displayed on one screen. It takes me half a day to complete this situation. Let's just talk about how to implement it. First, the view in the XIB of the horizontal screen is horizontal. Second, screen adaptation only supports horizontal screen-(bool) Adaptation :( uiinterfaceorientation) interfaceorientation {return uiinterfaceorientationislandscape (interfaceorientation);} third: in this view is the fourth output of the present: Hide the status bar-(void) viewdidload {If (iossystemversion> = 5.0) {// 5.0 and later in viewdidload, if the interface is misplaced and the animation is displayed, it is easy to see a white-headed [[uiapplication sharedapplication] setstatusbarhidden: Yes] ;}} Fifth: viewwillappear rotating the view 90 degrees-(void) viewwillappear :( bool) animated {[Super viewwillappear: animated]; [uiview animatewithduration: 0.0f animations: ^ {[self. view settransform: cgaffinetransformmakerotation (m_pi/2)]; If (iphone5) {self. view. frame = cgrectmake (0, 0,568,320);} else {self. view. frame = cgrectmake (0, 0,480,320) ;}}] ;}so many records are recorded for the time being. Other minor issues will be reported one after another, if you are curious about why the simulator above has the Home key, please read this article: