samedi 27 juin 2015

iOS app single table view cell not functioning

I am using the storyboard feature in Xcode, and I wanted to add a switch for if the order was a credit card. I have seen in other apps a switch is usually in a single table view cell. I tried to implement it on the storyboard, (the second scene of the app) and whenever I go to that scene in the simulation, it crashes with this message:(I cannot post a picture, if you would like one email me at zacharymanno@gmail.com) 2015-06-27 20:07:33.233 ToDoList[9048:436904] * Assertion failure in -[UITableViewCell _setHostsLayoutEngine:], /SourceCache/UIKit_Sim/UIKit-3347.44/NSLayoutConstraint_UIKitAdditions.m:2761 2015-06-27 20:07:33.268 ToDoList[9048:436904] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'

Aucun commentaire:

Enregistrer un commentaire