-
Notifications
You must be signed in to change notification settings - Fork 282
Linking Storyboard to Main Project #66
Comments
You need to load the storyboard from the Framework Bundle path, it will fail to load from the app's bundle path, because it's not there.
|
Hi, Im have come up at this same problem, but mine is a slightly different issue. I loaded the storyboard from the bundle and I get this error ''[<UIViewController 0x8ab1f80> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key'. |
Sounds like you have a connection to a IBOutlet or IBAction that doesn't Right click and check all connections in the storyboard. -Paul Solt On Sat, Jan 25, 2014 at 7:24 AM, Mrithula [email protected] wrote:
Paul Solt Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/ |
Hi, I checked and have all connections. I saw same problem here http://stackoverflow.com/questions/19954771/ios-linking-framework-storyboard-to-viewcontroller-for-use-in-main-project, but i cannot set that flag, as i have another framework in this bundle. |
Hi, this is the crash I get. Unknown class NewViewController in Interface Builder file. |
https://github.com/jverkoey/iOS-Framework#step-5-loading-bundle-resources
-Paul Solt On Sun, Jan 26, 2014 at 10:52 PM, Mrithula [email protected] wrote:
Paul Solt Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/ |
Thanks Paul, its working fine now. |
Hi Mrithula, *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x109116010> setValue:forUndefinedKey:]: Could you please share the steps to resolve this issue? Thanks |
Hi, On Thu, Jan 30, 2014 at 4:52 AM, a3kulkarni [email protected]:
|
Ok. Thanks, it worked. |
Hi there,
This framework guide is excellent and has taken us really close to our goal for our particular project, so thank you for that.
We are experiencing a slight problem; we want to create storyboards in the framework and use these in the "main" project. We are including the storyboards into the bundle which goes up to the main project. We can call the storyboard and see it in the app when it is built, however we can not include a view controller. Xcode will say it cannot find the view controller.
The view controller is also sat within the framework and imported into the project at build stage, however there seems to be a disconnect between the storyboard and viewcontroller when one is being submitted via a bundle, and other through the standard import procedure.
We've attempted adding the view controller to the bundle, however it does not like this as it will not allow the .h file into a bundle. I have also tried inverting the dependencies so the framework becomes a dependency of the bundle (thinking was that it would cause all the classes therein, inc viewcontroller, to load first).
I wondered if this is something you have encountered on your work on frameworking, and if so if you know a fix.
Many thanks,
Chris
The text was updated successfully, but these errors were encountered: