Questions tagged [ios8-extension]

Refers to the extensions added in iOS 8; may include Today extensions (widgets), Share extensions, Action extensions, photo editing extensions, custom keyboard extensions, document provider extensions. For Apple Watch extensions, use [watchkit].

Refers to the extensions added in iOS 8, which may include Today extensions (widgets), Share extensions, Action extensions, photo editing extensions, custom keyboard extensions, document provider extensions.

For more information, see Apple's Extensions documentation.

199 questions
2
votes
1 answer

how to create and install own keyboard (like emoji) which we can use in any application?

emoji keyboard is being enabled on device when we enable the key KeyboardEmojiEverywhere in the plist file /private/var/mobile/Library/Preferences/com.apple.Preferences.plist So,just with a key how can we get a keyboard? What is logic behind that? I…
Dimple
  • 406
  • 3
  • 11
2
votes
1 answer

Take screenshot of host app using iOS share/action extensions?

I will like to know how to take a screenshot of the iOS host app with the use of a share/action extension. My use case is as follows: use the Safari browser to access a webpage (https such as gmail) tap on the Share button and select the…
2
votes
1 answer

Get HTML from Safari share extension?

In the share extension, I managed to get the URL of the Safari page with the following code: NSExtensionItem *item = self.extensionContext.inputItems.firstObject; NSItemProvider *itemProvider = item.attachments.firstObject; if ([itemProvider…
benhi
  • 574
  • 1
  • 6
  • 24
2
votes
2 answers

Is it possible to determine when iOS widget hides?

Is there any way to catch the moment when a user hides the notification panel with a widget? I want to save some information into the database at that moment (I want it to be similar to applicationDidEnterBackground:). Any other ideas about how to…
Accid Bright
  • 592
  • 5
  • 17
2
votes
1 answer

Requesting data from a Today Extension

Seems like WatchKit is built using the same extension mechanism brought forth in ios8. I started into making a Today Extension and read through the guide. It says data is shared using App Groups, as is the case in WatchKit, but, unlike it WK, it…
Rob
  • 11,446
  • 7
  • 39
  • 57
2
votes
1 answer

IOS App Action extension is not closing

I am facing app extension close issues , please tell me if anyone know what wrong am doing.I am using action extension after preform some action inside extension i need to return response back. Sample Code // With Success Case - (void)…
venu
  • 2,971
  • 6
  • 40
  • 59
2
votes
0 answers

Any way to know the custom keyboard frame in viewDidLoad or viewWillAppear?

I'm developing a custom keyboard extension and noticed when I call self.inputView.frame.size.width in either viewDidLoad or viewWillAppear, it returns 0 or an incorrect number. Only in viewDidAppear is it correct. This is a problem because I need to…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
2
votes
1 answer

How to add and remove an existing custom keyboard extension to and from a Xcode project?

I would like to know how to add an existing custom keyboard extension to a Xcode project? Also, how to remove completely a custom keyboard extension from a project? I don't know how to add/or remove targets in a project.
2
votes
1 answer

How can I set badge count of iOS app from its today extension?

I'm looking for a way to update the badge count of iOS app icon from its iOS8 today extension. Today extension has a button and by touching that button, user can increase or decrease badge count of iOS app. Can anyone help me with this? PS: I need…
ariane26
  • 163
  • 1
  • 6
  • 25
2
votes
1 answer

IOS 8 custom keyboard rotation handling to load another xib file for the landscape keyboard

I am looking for help on a way to handle the rotation notification from an iOS 8 device (iPhone 6) so I can load a different xib for the Landscape keyboard. I have a few portrait keyboards, each of which loads from its xib file and all works for…
2
votes
1 answer

How to Host app send data to app extension in IOS action extension

i have done sample action extension app. am not able to get host app request data.i think is there some issue with this code. Host App request code NSDictionary *request = @{@"username”:@“username”,@“password”:@“password”}; …
venu
  • 2,971
  • 6
  • 40
  • 59
2
votes
3 answers

iOS share extension dismiss keyboard

I'm implementing a share extension for my app, so far everything is going good except I can't seem to dismiss the keyboard that automatically opens using the default layout/storyboard. I'm keeping the default design/layout…
Mario
  • 2,721
  • 1
  • 22
  • 23
2
votes
1 answer

How to host iOS8 Action extension in 3rd party web browser

Let's suppose that i have implemented an iOS web browser, capable of bidirectional communication with Javascript in the webview. What i would have to do if i wanted any iOS8 Action extensions to work in it, as it does in Mobile Safari? There is no…
Pavel Zdenek
  • 7,146
  • 1
  • 23
  • 38
2
votes
0 answers

How to detect that today widget is enabled?

It's possible to check via NSUserDefaults if keyboard extension is enabled, but I didn't find a way to check if today widget is enabled for the app.
Dmitry Volkov
  • 500
  • 1
  • 3
  • 14
2
votes
2 answers

Layout in Apple Watch

I am making a calculator for Apple Watch I have inserted a group and inside that I have added 4 button but I can't find any option that those 4 buttons should adjust on both Apple Watch screen. Apple Watch 38mm Apple Watch 42mm Group Properties…
Zohaib
  • 2,845
  • 2
  • 23
  • 33