ios-app-extension

NSUserDefault with App Group is not working in iOS 8 Beta3

 ̄綄美尐妖づ 提交于 2019-12-01 20:36:19
I have to save Boolean Value to NSUserDefault in my App with custom keyboard extension and share with App Group. My Code is worked in iOS 8 Beta1. self.defaults = [NSUserDefaults standardUserDefaults]; if([self.defaults boolForKey:@"BlackKey"]) { NSLog(@"Black"); } else { NSLog(@"White"); } But Not in iOS 8 Beta3. When i retrieve Boolean value from NSUserDefault , it's return nothing and i can't load from custom keyboard extension. I have also tried with initWithSuiteName in NSUserDefault . Am i only one for that problem or bugs of iOS 8 Beta3? A few probable solutions are: Your app group is

How does iOS determine which share extensions are enabled by default?

╄→гoц情女王★ 提交于 2019-12-01 19:33:30
Some apps have their 'Share Extensions' enabled by default when installing the app. Flickr is an example of this. However, other apps do not - OneNote, Wunderlist, etc are not enabled by default. Is there a setting in the plist file that controls this? I'm wondering if I can enable it by default, or have the user consent to enabling it by default, when my app starts up. Thank you! These apps have agreements with Apple. If you look at your settings app, you can see these apps that have agreements. Vimeo is another app with a similar agreement. As far as I know, there is no way to set your app

IOS Share extension: how to read from notes posts

倾然丶 夕夏残阳落幕 提交于 2019-12-01 15:54:20
I want my app to be able to parse text from notes app post as well other text editors posts, so i created an share extension target. Everything worked fine until i prepare the app for publish, replacing the TRUEPREDICATE by NSExtensionActivationRule. Supposedly, in my share extension target, i should add NSExtensionActivationSupportsText key to NSExtensionActivationRule in info.plist, which i did, but still my app extension doesn't show up in the share sheet. According to https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html my info

How to add custom notification in iOS Custom Keyboard?

蹲街弑〆低调 提交于 2019-12-01 06:43:16
I have added Custom Keyboard extension inside my app and running perfect. I have added NSNotification in my keyboard extension class like this: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeKeyboardColor) name:@"keyboard_color" object:nil]; Now I am calling this notification from my view controller class like this: [[NSNotificationCenter defaultCenter] postNotificationName:@"keyboard_color" object:self]; Now I have added my notification selector method in my keyboard extension class like this: -(void)changeKeyboardColor{ } But it is not working. I am testing

How to detect if ios8 custom keyboard extension is running in not iphone 6 optimized app?

末鹿安然 提交于 2019-12-01 06:38:30
In the app that not optimized for iphone 6 in standard display mode keyboard and status bar shows zoomed. This causes my manually layouted custom keyboard extension to show streched. How can I detect this zooming to fix layout? Use self.view.frame.size.width It returns 320 for zoomed mode & 414 for regular mode on my 6+ (hopefully on 6 also) in - (void)updateViewConstraints Eventually you will not need to do this as whatsapp and other apps get updated (I believe whatsapp just did) but how I get around it temporarily is by getting the size of the view where I am drawing my keyboard view. CGRect

ios 8 custom keyboard hold button to delete?

南笙酒味 提交于 2019-12-01 05:57:34
I am currently building a custom keyboard and I am almost done. One problem that I have is with the delete button. When the user taps the delete button, it does what it should do and deletes the previous text entry. However when the user holds the button down, nothing happens. How do I make it so that when the user holds down the delete button, the keyboard continuously deletes like in the standard ios keyboard? This is my current code: pragma mark Keyboards - (void)addGesturesToKeyboard{ [self.keyboard.deleteKey addTarget:self action:@selector(pressDeleteKey)forControlEvents

iOS 8 Action Extension icon sizes

此生再无相见时 提交于 2019-12-01 05:20:38
While trying to solve this iOS 8 action extension icon is blank on device (works in simulator) problem, I realized that nowhere are informations available what size an iOS 8 Action Extension icon must have. Also the technical requierement "PNG is recommended" and "monochromatic" are not very clear. Does anybody know where to place the icon for an Action Extension in XCode 6 and what dimensions and format it must have. From the Documentation : iOS. Create a template image that represents your Action extension. A template image is an image that iOS uses as a mask to create the final icon that

How to add custom notification in iOS Custom Keyboard?

我的梦境 提交于 2019-12-01 05:09:23
问题 I have added Custom Keyboard extension inside my app and running perfect. I have added NSNotification in my keyboard extension class like this: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeKeyboardColor) name:@"keyboard_color" object:nil]; Now I am calling this notification from my view controller class like this: [[NSNotificationCenter defaultCenter] postNotificationName:@"keyboard_color" object:self]; Now I have added my notification selector method in my

Sharing File Data Between Applications in Swift/iOS [duplicate]

左心房为你撑大大i 提交于 2019-12-01 04:00:36
This question already has an answer here: Sharing data in between apps in IOS 1 answer I've been doing research on how to share data between applications securely. I'd like to get some info on the correct way to handle this before I do a deep dive on implementation using the wrong method. Just cause you can do something does not necessarily mean you should. User Case : I am working on a suite of language learning apps that have a shared audio file base of several hundred audio files and json files containing important data corresponding to a language. I'd prefer to allow the user to not have

ios 8 custom keyboard hold button to delete?

核能气质少年 提交于 2019-12-01 03:39:27
问题 I am currently building a custom keyboard and I am almost done. One problem that I have is with the delete button. When the user taps the delete button, it does what it should do and deletes the previous text entry. However when the user holds the button down, nothing happens. How do I make it so that when the user holds down the delete button, the keyboard continuously deletes like in the standard ios keyboard? This is my current code: pragma mark Keyboards - (void)addGesturesToKeyboard{