简体   繁体   中英

Using autoresizing masks for multiple iOS app

Say I want to write an app which users of iOS5, iOS6 and iOS7 should be able to use.

Is it OK if I use autoresizing masks (springs and struts)? Will this not cause some issues for people having iOS7?

because if I use autolayout I'll have to make it backwards compatible with iOS5 and I don't want it yet.

iOS will still translate the autoresizingMasks to constraints, because all older apps would break otherwise. I would still recommend testing your app on an iOS 7 device before releasing it, but using autoResizingMasks should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM