UIStackView before iOS 9.0

后端 未结 4 1965
轮回少年
轮回少年 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:31

    The previous answers don't actually address the idea of removing the offending UIStackView, rather they change the deployment target to correct the issue. My solution doesn't force you to change deployment targets.

    I ran into this issue when I accidentally added a UIStackView (which is easy to do when adding layout constraints). To fix this issue, I went to the Document Outlet pane (shown below) and pulled my 'Round Style Text Field' out of the 'Stack View' hierarchy and into the 'View' hiearchy. Then you can delete the Stack View.

    This corrected the error for me, and I didn't have to change deployment targets. Hopefully this helps.

提交回复
热议问题