background preloader

Extensions

Facebook Twitter

Ios - Screenshot Safari from Share Extension. Ios8 how to launch the containing app from its app extension. Ios app extension - iOS AppExtension : How can I Combine NSExtensionActivationRule and NSPredicate. Tumblr/ios-extension-issues · GitHub. Engineering - What we learned building the Tumblr iOS share extension. Apple Mach-O Linker Warnings - STViCloud, STVWebServices... - STV 4.0 beta - STV Community. iOS 8 Extensions: Sharing Code with an Embedded Framework.

Note: Due to the NDA, this tutorial won’t include any screenshots from Xcode 6.

iOS 8 Extensions: Sharing Code with an Embedded Framework

When iOS 8 is released, I will update the tutorial with screenshots. Extensions were one of the more dramatic new things introduced at WWDC 2014. They allow all kinds of convenient ways to extend the power of your app beyond the app itself. This tutorial will walk you through making a today extension for iOS 8 (commonly called a widget). Widgets display in notification center, and allow people to quickly access to bits of information or perform simple actions without having to launch your app. Although this tutorial specifically focuses on today extensions, much of what we will cover applies to other extensions too, including sharing code & data.

Before you begin, download the source code to super simple sample app Word of the Day here. This is a finished project, with a widget (today extension), an embedded framework we are using to share code, and data sharing with a shared container. Step 1: Add a New Target. Sharing data between your app and a Today Extension on iOS 8. Today extensions are the new iOS 8 feature that allows you to put widgets on the Notification Screen.

Sharing data between your app and a Today Extension on iOS 8

This post will show you how you can share data through NSUserDefaults. This is a simple, but probably common use case. Your main app has a set of “things” it displays, and the user may want to display some of these “things” on the Notification screen, so the app allows you to specify this. It’s not unusual to store this meta-data in NSUserDefaults. Swift - Sharing data between an iOS 8 share extension and main app. Ios - Communicating and persisting data between apps with App Groups. Iphone - Accessing Core Data SQL Database in iOS 8 Extension (Sharing Data Between App and Widget Extension) Ios - Communicating with/opening Containing app from Share extension. Swift - Sharing data between an iOS 8 share extension and main app. Sharing Extension. This post is part of a daily series of posts introducing the most exciting new parts of iOS8 for developers - #iOS8DayByDay.

Sharing Extension

To see the posts you've missed check out the index page, but have a read through the rest of this post first! Introduction A huge new feature in iOS8 is the introduction of support for extensions. These are areas in which developers can enhance the operating system, including both 3rd-party apps and Apple-provided apps, with their own features and functionality. There are 6 extensions applicable to iOS: Today screen widgetsShare extensionsActionsPhoto editingStorage providersCustom keyboards We'll cover some of these in later editions of iOS8 Day-by-Day, but today's article is focused on sharing extensions. Sharing extensions give you, the developer of an app, the ability to show an icon on the common share-sheet, and then to handle the sharing of the content the user has requested. A word of warning: this topic is not an easy one. Creating a share extension Conclusion.