Xcode 6.0.1 ios 7 autorun

I found that applications created in Xcode 6 for ios 7 differ in behavior from the same applications created for ios 8. Something is wrong with the limitations of auto-detection. For example, some bottom and trailing spaces will not work if I create an application in Xcode 6 for ios 7 both in the emulator and in the device, but applications work correctly if I create them in Xcode 6 for ios 8 or Xcode 5 for ios 7. So, I think there are some problems for ios 7 when creating with Xcode 6. If someone has the same problem and how can it be solved?

+6
source share
1 answer

In iOS 7, views of the contents of the cells themselves are determined by auto-masking. In iOS 8, this was changed, the cells stopped using autoresist masks and started defining content in layoutSubviews. If the thread is encoded in iOS 8, and then decodes it on iOS 7, you will have to view the contents without an autoresist mask and there are no other means by which you can determine the size yourself. Therefore, if you ever change the frame of a cell, the presentation of the content will not follow.

Applications deploying back to iOS 7 will need to work around this content sizing, adding autoresist masks, or adding a limit. I assume this means that this is not a bug in Xcode 6, but the incompatibility between the iOS 8 SDK and the iOS 7 SDK, which would happen if you upgrade to Xcode 6 because it will automatically start using the iOS 8 SDK.

+1
source

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


All Articles