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

iOS8 extension NSItemProvider UIImage to ALAsset via ALAssetsLibrary

I have a share extension that supports images. Everything is working and I get the image from the item provider like so: if([imageItemProvider hasItemConformingToTypeIdentifier:(NSString *)kUTTypeImage]) { [imageItemProvider…
Jacob K
  • 2,669
  • 1
  • 15
  • 20
2
votes
1 answer

Can we create multiple today extension widgets for the same app in iOS8?

My question is quite simple, when developing a new iOS8 app, can we create two today extension widgets for the same app (each extension having a different functionality of app)? I do not want to create a massive single today notification widget like…
fahadahmed
  • 41
  • 5
2
votes
2 answers

Want to implement prediction and autocorrection in ios 8 custom keyboard application

I am developing an ios 8 custom keyboard application . I want to add an predictive bar and auto correction in that app extension . For that i have implement UILexicon class . My code is which i have written in viewDidLoad method of Keyboard class: …
Ashish
  • 25
  • 8
2
votes
0 answers

using PHContentEditingController without photo editing extension?

Can i use PhotosUI framework's PHContentEditingController protocol inside my app to edit any given image or asset without having to create a photo editing extension? The question is does Apple let us access to this content editing capabilities…
ItayAmza
  • 819
  • 9
  • 21
2
votes
1 answer

PHAdjustmentData is nil in "startContentEditingWithInput"

I'm working on a photo-editing extension app, and I want it to be able to save the information about the changes made into the PHAdjustmentData, so that user can modify those changes later. I save all the required data into PHAdjustmentData,…
almas
  • 7,090
  • 7
  • 33
  • 49
2
votes
2 answers

Custom keyboard height doesn't change when device orientation changes

Whenever I rotate device, my custom keyboard height always remains the same. I try to remove Constraints and add it again but no luck. I have looked at lots of related question on Stack Overflow and on the iOS dev Forum as well but I still haven't a…
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
2
votes
1 answer

Are Today Extension Ivars Reset Constantly?

I'm writing code to a new iOS 8 Today widget, but I noticed that each time that widgetPerformUpdateWithCompletionHandler: is called my ivars (created from @property) are reset. It's is like every time a new view controller is getting…
sidyll
  • 57,726
  • 14
  • 108
  • 151
2
votes
1 answer

Using jQuery in ios 8 app extension javascript files

I'm following the The App Extension Guide: Accessing a Webpage to extract some content from a page. Is it possible to use jQuery inside my javascript file and if so how?
kfateem
  • 323
  • 2
  • 8
2
votes
0 answers

Swift requireGestureRecognizerToFail too slow

I am making a keyboard extension, so I want caps lock to activate when shift is double tapped, and have it just regularly shift on single tap. My code: var selector: Selector = "lockCapsLock" var singleTapSelector: Selector = "shift" let…
SomeGuy
  • 3,725
  • 3
  • 19
  • 23
2
votes
1 answer

documentStorageURL coming as null

I am trying to implement the document picker extension in my app. So In prepareForPresentationInMode method, I present my own navigation controller which shows the list of files. When user clicks on a file, I download the file and try to give the…
CyberInfo
  • 240
  • 2
  • 9
2
votes
1 answer

Using categories in iOS 8 frameworks

I am trying to share some code between an app and an extension, using a framework. Mostly this works, but I have several categories that do not seem to load correctly in the extension. For example, I have a category on NSString to reverse the…
David Hoy
  • 128
  • 1
  • 4
2
votes
3 answers

iOS 8 custom keyboard self.view.frame returns 0

I am writing a custom keyboard for iOS 8. My main UIView returns {{0, 0}, {0, 0}} in my viewDidLoad method. I have tried receiving the CGRect with view.frame and bounds but both return 0. However if I use these same methods to retrieve my view's…
Alex
  • 361
  • 1
  • 4
  • 15
1
vote
1 answer

iOS InApp Purchase in Action Extension app

I've tried to add a working inApp purchase view inside an Action Extension. As you know, in Action Extension we have 2 targets, one is the normal App (the app you can download from app store), and the second one the extension. The view inApp…
Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30
1
vote
1 answer

Use custom Keyboard app extension in own application at launch. IOS 8-9

I have created a custom keyboard with the Custom Keyboard in Xcode 6 & 7. I am wondering if it is possible to use the Custom keyboard by default without making the user go and installing it. I have looked into UIkeyboardType and inputView but…
1
vote
0 answers

iOS 8 Custom Keyboard: Decimal Pad with Done Button

I am developing iOS application on Swift and I want to add a done button to the Decimal Pad Keyboard Type. Do I need to create an Application Extension for Custom Keyboard to recreate Decimal Pad with a done button or is there another way. I only…
Strat Aguilar
  • 818
  • 6
  • 14