IOS 7 Simulator vs Real iPhone unexplained differences

I am working on a fix for iOS 7 and have a problem. When I launch my application on a real device (iPhone 4S iOS 7), the screen looks different than when I launch the same application on iPhone 3.5 inches iOS 7 Simulator. I am trying to understand why and why, if someone can help, that would be great!

The first screenshot from the Simulator, the second image from the device:

SOLVED: The application on a real iPhone has a base SDK 6.0, and the application that is on Simulator has a base SDK 7.0. Therefore, I assume that the real device knows how to compensate for the low SDK base, in contrast to the simulator, which came in completely in the SDK 7.0 environment, and therefore it showed differently. thanks!

SIMULATOR:

REAL DEVICE:

+6
source share
3 answers

For everyone who reads this, Roy's comment β€œAllowed” above.

I went to Xcode after the upgrade, and it automatically updated the base SDK to the latest version of iOS 7.0.

After changing this parameter to "iOS 6.1", both the simulator and the device now work the same as expected on iOS 7.

Don't try to steal Roy's thunder (which saved me many hours - thanks), just summing up to others how to quickly solve the problem.

Ralph

+1
source

Unlike the proposed solution, Apple Documentation recommends installing the Base SDK on the latest version of iOS https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid / TP40012582-CH28-SW37 , so there should be a better solution

0
source

I also ran into the same problem.

I decided by adding the code below to the viewDidLoad .. method of the view manager.

if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone; 

Hope this helps ... Thanks.

0
source

Source: https://habr.com/ru/post/954134/


All Articles