UIStackView before iOS 9.0

后端 未结 4 1924
轮回少年
轮回少年 2021-01-31 15:21

I recently upgraded XCode to the latest Version 7.0 beta 3 (7A152u).

I am using Swift for building an iPhone app and when I try to use a Stack View in Main.storyboard I

4条回答
  •  死守一世寂寞
    2021-01-31 15:43

    The accepted answer requires you to change your entire project deployment settings. If you don't want to require iOS 9 for your entire app, you can do this on an individual basis for a single xib or storyboard by setting the Builds for property in the file inspector pane of Xcode:

    Set this to iOS 9.0 or later and you will be able to continue to build your app for a lesser deployment target (7.0 in my case). Of course your app will crash if you attempt to load the xib on a device < iOS 9, so be sure to check this in code and take appropriate actions.

提交回复
热议问题