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
279
votes
31 answers

Swift apply .uppercaseString to only the first letter of a string

I am trying to make an autocorrect system, and when a user types a word with a capital letter, the autocorrect doesn't work. In order to fix this, I made a copy of the string typed, applied .lowercaseString, and then compared them. If the string is…
SomeGuy
  • 3,725
  • 3
  • 19
  • 23
51
votes
1 answer

iOS Share vs Action App Extension

I want to implement an app extension, but I can't decide if I should implement it as a Share Extension or Action Extension. The documentation doesn't say much about the differences, just this: Share (iOS and OS X): Post to a sharing website or…
Senseful
  • 86,719
  • 67
  • 308
  • 465
43
votes
3 answers

Height of iOS8 Today Extension using Only Auto Layout Gives Broken Constraints

Apple documentation suggests setting the height of Today Extensions using autolayout. If a widget has additional content to display, you can rely on Auto Layout constraints to adjust the widget’s height as appropriate. If you don’t use Auto Layout,…
Ryan C.
  • 791
  • 1
  • 6
  • 9
38
votes
4 answers

Sharing code between original iOS App and App Extension

Sharing class between iOS app and extension app I want to use a custom class in both my app and the extension app. If I just have the class in the main app folder, the extension doesn't pick up on it. I tried making a copy of it and putting it into…
Ruben Martinez Jr.
  • 3,199
  • 5
  • 42
  • 76
34
votes
2 answers

How to check "Allow Full Access" is granted since iOS 8.3 *from the container app*

Prior to iOS 8.3, the way to check whether "Allow Full Access" was granted to a keyboard extension was through the following code in the container app: - (BOOL)isOpenAccessGranted{ return [UIPasteboard generalPasteboard]; } However, as comments…
daspianist
  • 5,336
  • 8
  • 50
  • 94
26
votes
5 answers

Share between an iOS extension and its containing app with the keychain?

I understand I can share data between my share extension and its containing app by enabling app groups and using NSUserDefaults (see Sharing data between an iOS 8 share extension and main app). However, the data I am storing is sensitive, so I hoped…
Jim Biancolo
  • 804
  • 2
  • 9
  • 14
25
votes
0 answers

iOS 8 share extension and authentication flows

I have an iOS 8 share extension for posting content from a web browser. Users need to be prompted to login if they've never logged in via the containing app. Pinterest appears to support fast-switching to the containing app (I'm assuming they've…
kfateem
  • 323
  • 2
  • 8
17
votes
5 answers

Prevent custom keyboard in textfield

I was experimenting with how a custom keyboard affects my app. I installed Swype on my iPhone 6. I find that in some of my views where I have custom inputView property set on a text field, the Swype keyboard is overriding and presenting instead of…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
15
votes
1 answer

How to share NSHTTPCookieStorage in iOS 8 Extension?

I am working on an app that uses NSHTTPCookieStorage to store user data. I can't get to access the cookies inside the extension, as are saved inside Library. Thank you.
Alexandru Dranca
  • 830
  • 1
  • 7
  • 21
14
votes
2 answers

UIActivityViewController not showing my custom activity image in the "MORE" list on iOS8

Here's the screenshot: In my subclass of UIActivity, I override the -activityImage method to use my own icon for the facebook share item, but it appears in the share panel but disappears in the MORE list.
njuxjy
  • 415
  • 4
  • 13
13
votes
2 answers

Add "Edit in Excel" or "Edit photo" extension

I checked the latest Dropbox and Excel for iOS. In Dropbox we get an edit button. On click it opens Excel's extension where you can edit the file. After save, changes are reflected in the Dropbox file too. I want to add such a button. Also I'd like…
Durgaprasad
  • 1,910
  • 2
  • 25
  • 44
13
votes
3 answers

How to include AFNetworking as a Framework for using in an iOS App and Extension via CocoaPods

NB: This is related to this question on project structure, but I have decided to a vastly the use-case to better abstract the problem. Problem How do I include afnetworking in my iOS App and an accompanying iOS Extension (ios8-extention,…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
12
votes
6 answers

iOS Extension: Is it necessary to increment its bundle version (CFBundleVersion)?

Do I have to increment the the CFBundleVersion in my extension's Info.plist to ensure it overwrites existing ones? Or if doing so in the main app's Info.plist is enough? I'm working on today extension, but I guess the question applies to all…
Joseph Lin
  • 3,324
  • 1
  • 29
  • 39
12
votes
4 answers

Customize SLComposeServiceViewController pop up of share extension iOS 8

I Have integrated share extension in my app but I want to do few modification in the SLComposeServiceViewController pop up as per the project requirement like change the button titles and set background colour for text view and header. How do I do…
iMash
  • 1,178
  • 1
  • 12
  • 33
12
votes
2 answers

how to localize iOS 8 today extensions widget and also the widget name

I can't understand how I can localize today extensions, I want to create the Localize.strings file like a normal xcode project that for example have this string: .en "Apple" = "Apple" .it "Apple" = "Mela" and I also want to know how I can…
Piero
  • 9,173
  • 18
  • 90
  • 160
1
2 3
13 14