frankish frankish - 5 months ago 113
iOS Question

How to create a Today widget programmatically without storyboard on iOS8?

I tried to delete the storyboard file and related

Info.plist
entry but this time extension stopped working; it doesn't even launch from XCode.

The operation couldn’t be completed. (LaunchServicesError error 0.)


It is easy on the regular app (containing app) as we see it's entry point and application delegate, but how to do it on extensions too?

Answer

Remove NSExtensionMainStoryboard from Info.plist Add NSExtensionPrincipalClass = YourViewController

Don't forget to create your own view in loadView

Comments