ios-app-extension

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

空扰寡人 提交于 2019-11-30 08:27:52
I created a Today Extension that is introduced in iOS 8 first time. To share data between Today extension and it's container App , I defined an app group , and bind them to this group. (Actually I added an embedded framework also to re-use code in both side.) Details of this method is described in Apple's document . I created some core data model and store it as sqlite on group container. Then everything works as I thought. However, when I uninstall container app, There are still shared container and it's content on my iPhone. I think when last member of app group is uninstalled, this

Red dot (circle) next to the app name below the app icon on the iPhone Home Screen on iOS 8

…衆ロ難τιáo~ 提交于 2019-11-30 07:48:54
What does the red dot (circle) next to the app name below the app icon mean? I added a Today Extension (Widget) to the app. It appears only when I launch the app on the iOS 8, it does not appear on iOS 7 simulator. Even though I removed the extension and cleared the simulator, it still appears before the app name. An Orange dot next to an app normally means it's a beta version, as installed through Testflight. I have a couple of those at the moment, though one looks more red. Trying to find if there's a difference between an orange and a red dot, or if it's just an artefact of the colour of

Xcode6:Embedded binary is not signed with the same certificate as the parent app

允我心安 提交于 2019-11-30 07:48:41
After I add Today App Extension Target,I become impossible to compile project. below is error: error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's. Embedded Binary Signing Certificate: iPhone Developer: (Developer name) (number) Parent App Signing Certificate: iPhone Developer: (Developer name) (number) but Embedded binary certificate and parent app's cerificate are the same. So I'm confusing now... I had to select my app under 'Targets', then go to the 'Capabilities' tab and click 'Fix

Check full access for custom keyboard extension

杀马特。学长 韩版系。学妹 提交于 2019-11-30 07:46:37
I need to check full access for custom keyboard extension. I found this link. How to check the "Allow Full Access" is enabled in iOS 8? It say we can check App group. I have app group called "group.TTT.TGroup". It share access between main app and custom keyboard. Then, I check like this. Problem is that I always have access to that (always has array or error = null). Is it because I am sharing same data? But, if my app use another app group and extension use other app group, I can't definitely access to that. May I know how to do? NSFileManager* fileManager = [NSFileManager defaultManager];

Why isn't my iOS8 Application Action Extension App Icon showing up?

不问归期 提交于 2019-11-30 05:56:54
问题 My app icon is just a grey super ellipse even though I have specified a icon asset catalog in my Targets App Icons and Launch Images. 回答1: The following worked for me creating a Share Extension, but I believe Action Extension will do the same. Note that in the case of an Action extension, you need a monochromatic version. If you are using an asset catalog for your main application icon, you should be able to get the Extension to leverage that same asset catalog. The key for me was to: Select

How to play tock sound when tapping custom keyboard buttons

*爱你&永不变心* 提交于 2019-11-30 05:23:55
I've been working on a custom keyboard for iOS 8 for some time and everything went fine so far, but I still couldn't get my head around this tapping sound stuff. I searched high and low for this issue and tried several approaches including Using AudioToolbox Using AVFoundation Put the tock.caf inside my bundle and just play it Some of them works, in the simulators but none of them works in my devices. Could anyone who has successfully played sound when tapping on custom keyboard buttons care to share some working code? And it is the best if the code could honor the sound settings. As Farzad

Change the button titles on SLComposeServiceViewController?

試著忘記壹切 提交于 2019-11-30 01:18:08
问题 Is there a way to change the button titles on the SLComposeServiceViewController? I tried to change the bar button items on the navigation item, but those aren't the right buttons. 回答1: Simply accessing from navigationController!.navigationBar does the charm. The following should help. self.navigationController!.navigationBar.topItem!.rightBarButtonItem!.title = "Save" 回答2: I just found a way to do it: class CustomServiceViewController: SLComposeServiceViewController { override func

Get full string in iOS8 Custom Keyboard Extension

南楼画角 提交于 2019-11-30 01:13:29
I'm creating a Custom Keyboard Extension for iOS 8. I want to get the whole string that the user wrote in the text input field. Unfortunately I stumble in to two main problems: 1) I get null in this callback: - (void)textDidChange:(id<UITextInput>)textInput 2) I only get partial String When I call these methods: - [self.textDocumentProxy documentContextAfterInput]; - [self.textDocumentProxy documentContextBeforeInput]; I want to get the whole string in the text input the user is currently editing what do you suggest i do? Thanks! I found How To. - (void)doSomething{ dispatch_async(inputQueue,

Warning during archive App with iOS 8 Extension in Xcode 6

放肆的年华 提交于 2019-11-30 01:08:51
I have a problem while archiving my app. I created a new target for an iOS 8 extension. When I archive the app, I receive a warning. The warning is "PBXCp Warning", "warning: skipping copy phase strip, binary is code signed: /Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates/ArchiveInter mediates/AppName/IntermediateBuildFilesPath/UninstalledProducts/AppExtappex/AppE xt" The app is in Objective-C. Check the "Strip Debug Symbols During Copy" option in your Xcode target's build settings. Its saying that it cant strip debug symbols because the extension was already signed. If you

iOS 8 Share extension loadItemForTypeIdentifier:options:completionHandler: completion closure not executing

无人久伴 提交于 2019-11-30 00:52:13
I'm using the loadItemForTypeIdentifier:options:completionHandler: method on an NSItemProvider object to extract a url from Safari via a Share extension in iOS 8. In Objective-C, this code and works and the block runs. [itemProvider loadItemForTypeIdentifier:(@"public.url" options:nil completionHandler:^(NSURL *url, NSError *error) { //My code }]; In Swift, it looks very similar, however the closure doesn't run. Also, itemProvider.hasItemConformingToTypeIdentifier("public.url") returns YES so there must be a valid object to parse the url from inside the itemProvider . itemProvider