Could not instantiate class named IBNSLayoutConstraint

后端 未结 8 1680
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 01:50

I\'m using XCode6 beta and trying out Swift. When I put some auto layout constraints in a view controller the app crashes with the following error: Terminating app

8条回答
  •  旧巷少年郎
    2020-12-08 02:03

    What ended up happening to me was that I cut a subview inside of Interface Builder to copy it into another xib. This left the subview in original xib Interface builder with it being greyed out. After removing the subview from it's original place (by selecting and deleting). I was able to get rid of the error.

提交回复
热议问题