ios-app-extension

iOS force App to use custom keyboard

我们两清 提交于 2019-12-11 09:47:05
问题 I am working on the app which has a one text-field which should accept only numbers so I created one custom keyboard which has only [0-9] as input to accept.To use this custom keyboard one has to go setting --> keyboards then accept this and then open particular keyboard from the app. Is this possible to force user to open only custom keyboard without going into setting option. I want whenever user opens the app.. only custom keyboard should open, not other 回答1: Just make it numeric by

NSKeyedArchiver and sharing a custom class between targets

可紊 提交于 2019-12-11 08:55:19
问题 My app uses a custom class as its data model: class Drug: NSObject, NSCoding { // Properties, methods etc... } I have just created a Today extension and need to access the user’s data from it, so I use NSCoding to persist my data in both the app container and the shared container. These are the save and load functions in the main app: func saveDrugs() { // Save to app container let isSuccessfulSave = NSKeyedArchiver.archiveRootObject(drugs, toFile: Drug.ArchiveURL.path) if isSuccessfulSave {

How to show the widget same like an Alarm widget (Clock APP)?

巧了我就是萌 提交于 2019-12-11 06:05:44
问题 I need to do the app same as Clock Alarm functionality. Once we set the Alarm for some time like 3.15PM (Even app is not in running state) It shows in Today Notification screen - we can do this(your alarm......) using APP Extension (using User defaults), right? As Pop up screen Alarm Pop Up in lock screen - My Question - a. How can we achieve both 2 and 3, Is this a same APP Extension concept? b. In First - I believe they used User defaults, Can we do the API access in APP Extension like

iOS Action app extension with transparent background?

我们两清 提交于 2019-12-11 04:33:16
问题 I’m trying to make an iOS Action app extension with minimal UI. Basically it would just show a progress indicator until the action completed. I just want to be able to animate the view so that it slides down from the top & then slides back up when the action has completed. If anyone is familiar with Instapaper’s Share extension, then that’s the kind of basic UI I’m looking for. The problem is that when I try to duplicate this functionality - I just have a small UIView that animates down from

Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks'

蓝咒 提交于 2019-12-11 03:48:10
问题 I'm getting these 2 errors when I try to submit my app with a today extension on Xcode 6.1 GM. I've tried both of these solutions but neither of them work: Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks' Validation Error: Invalid Bundle. The bundle at … contains disallowed nested bundles Both the app and the today extension are written in Swift. I've tried cleaning the project and deleting Xcode derived data but I'm still getting the same 2 errors. Any

App icon of Share extension is not updating in device even with updating app icon

自古美人都是妖i 提交于 2019-12-11 03:24:47
问题 In my iOS application, I have a share extension. Initially we were using the different app icons. Later we changed the app icons for the application. The old icon has got replaced from everywhere, but for Share extension, it is not getting replaced with the new icon. Following are ways we tried out but it has not getting changed: Delete the application and reinstalling. -- Did not work Removing the derived data and rebuilding the app and reinstalling -- Did not work. If anybody has faced the

Using UITextField inside a keyboard app extension

此生再无相见时 提交于 2019-12-10 20:07:52
问题 I added textfield (keyboardTextField) on top of my custom keyboard. I can select it and enter some text (using my custom keyboard). But it's impossible for me to select the input view of the main app back. This line of code [keyboardTextField resignFirstResponder]; doesn't work correctly. If someone have any workaround or any ideas, I need your help. 回答1: I fixed this by adding a button which switches the user input from the UILabel (in my case) to the (normal - iOS) UITextField in Messages f

Set notifications from Today Extension Widget

匆匆过客 提交于 2019-12-10 17:07:43
问题 I am creating a simple timer app which will have a lot of focus on the today extension widget features. Users can start the timer from here by tapping. The only problem is that I need to set a local notification from the widget. I have tried to use [[UIApplicaton sharedApplication] scheduleLocalNotification] but Xcode throws an error saying that shared application is unavailable in app extension. Is there any solution for setting a local notification from Today extension? Thanks in advance.

iOS App Extension - Action - Custom Data

非 Y 不嫁゛ 提交于 2019-12-10 15:47:37
问题 I'm developing an app extension as an Action . The host app will use my extension in the normal way: by presenting the UIActivityViewController to include an array of activityItems which are then passed to my extension. iOS will decide whether to present my Action based on whether the items match the NSExtensionActivationRule setting that I have defined in info.plist of the extension. This feature seems to be meant for content and pointers to content (images, videos, text, files, URLs).

iOS 8 Today Extension: Is it possible to add editable text field?

删除回忆录丶 提交于 2019-12-10 13:38:10
问题 I am trying to create a simple Today Extension. I was able to add a label wherein the value can be updated via the main app. Now, I am exploring the possibility to update the value in main app via the extension. However, when I tried to add a textfield, I cannot input anything. Is this a limitation of the extension? If not, can you please guide me how to accomplish this? Thank you very much! 回答1: Unfortunately, it is a limitation. It says in Apple's extension programming guide: Because user