Clicky

iOS Dev Nugget 108 Extension View Controller As App's Root View Controller For Faster Development

.

Need to run a code review on your codebase? Hire me

A quick tip for developing extensions in iOS 8:

When developing iOS action extensions and today widgets, I'm finding that it's sometimes useful – where possible – to set up your app to launch your extension's view controller as your app's root view controller with a few hard-wired mock inputs so you can develop your extension faster than if it was launched as an extension.

You can check the extensionContext property of your root view controller. If it's nil, you are running in the app.


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues