frankish frankish - 1 year ago 288
iOS Question

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

I tried to delete the storyboard file and related

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 Source

Remove NSExtensionMainStoryboard from Info.plist Add NSExtensionPrincipalClass = YourViewController

Don't forget to create your own view in loadView

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download