Reputation: 467
I am using the code from this link http://www.gilthonwe.com/2012/06/09/stacked-bar-chart-coreplot-ios/ and it has a xib file with 2 views: View and Graphview .
I tried to get it to work on storyboard but its crashing. I don't know how to fix it.
I have created a storyboard file and added a view controller and changed tried changing class to viewController/UIviewController .
I have tried both the options dont work as for Graphview I tried changing the class to graphview and removed all data from appDelegate excluding return YES.
I changed the main storyboard in target to the storyboard that I have created still its not working .
I want to add Navigation bar in this particular example but its not working.
Upvotes: 1
Views: 269
Reputation: 31745
Your error message...
Terminating app due to uncaught exception'NSInvalidUnarchiveOperationException',
reason: 'Could not instantiate class named NSLayoutConstraint'
...suggests that you have autolayout enabled. It replaces 'springs and struts' with constraints. This is a new ios6 feature that is not present on lower versions but is automatically enabled when you make a new project. You need to disable it or you will experience these crashes on anything lower than ios6. Go to the offending storyboard, select the file inspector (one of the right hand panels) and you will see an 'autolayout' checkbox. Untick it.
Upvotes: 3