ios-app-extension

Today Extension has a title, but no body iOS 8

你说的曾经没有我的故事 提交于 2019-12-03 05:17:39
I am trying out the new TodayExtensions in iOS 8 and I followed the steps to create a Today Extension as described in the WWDC video Creating Extensions for iOS and OS X, Part 1 . I added a colored UIView to the ViewController in the provided storyboard. I get a title in my "Today" Notification center, but I get no body with my colored view. It looks like this (I made two): Is anyone else getting this? I set breakpoints in all of my ViewControllers methods and nothing gets called. I changed my Info.plist to just go directly to my VC class, instead of the storyboard and I get nothing still. I

Too often “Unable to load” in Today Widget Extension

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:06:51
I'm making a Today widget for my app. My widget contains a UITableView with 10 cells. (Each cell's height is 50pt.) Function is simple. If I touch up a button on cell, reload DB from sqlite and show them on cells. It works very well on simulator and iPhone 4s, 5, 5s, 6 except only iPhone6+. I did remove widget and add again over 10 times, but It's not helpful for me. I did check memory and zombie. but that is stabilized under ~10M and no leaks. How can I solve my problem? Okay, guys, You don't like my previous answer. I will retry. Consider below condition: +-------------------+ | Table View |

Callback for MSSticker Peels in iOS 10 iMessage sticker app

北慕城南 提交于 2019-12-03 04:28:41
问题 I'm experimenting with sticker iMessage apps in iOS 10 and I'm running into an issue with the override func didStartSending(_ message: MSMessage, conversation: MSConversation) method in MSMessagesAppViewController . When "peeling" a sticker from an MSStickerView , I would expect to receive some sort of callback on the didStartSending method. But it appears this is not the case. Does anyone know if this is the expected behavior and/or if there's another way to subscribe to callbacks for when

Does iOS 8 support dynamic linking?

白昼怎懂夜的黑 提交于 2019-12-03 01:18:48
Up until iOS7, Apple did not support dynamic linking due to security concerns. Code reuse between developers usually relied on static libraries, which were built as part of the executable of the app. Introducing extensions in iOS8 seems to change this a bit, because extensions are separate executables. Sharing code between an extension and its containing app is done via a framework. Apple is saying this in their release notes: Frameworks for iOS. iOS developers can now create dynamic frameworks. Frameworks are a collection of code and resources to encapsulate functionality that is valuable

iOS App Extension with xib instead of storyboard

蹲街弑〆低调 提交于 2019-12-03 00:28:15
I'm writing an iOS 8 App Extension (widget) for the Today view. The default template in xcode comes with a storyboard. How can I use an xib file instead of an storyboard? The documentation says this is possible, but I can't seem to figure out how to change the info.plist file to get the xib loaded. all you need to do is add "NSExtensionPrincipalClass" and the classname which you want. As I recently discovered the hard way - notice that the 'NSExtensionPrincipalClass' must be directly under the 'NSExtension' key. e.g class ShareViewController : <key>NSExtension</key> <dict> <key

How to create a Today widget programmatically without storyboard on iOS8?

天涯浪子 提交于 2019-12-02 19:18:14
I tried to delete the storyboard file and related Info.plist entry but this time extension stopped working; it doesn't even launch from XCode. The operation couldn’t be completed. (LaunchServicesError error 0.) It is easy on the regular app (containing app) as we see it's entry point and application delegate, but how to do it on extensions too? I did the following steps: Delete the storyboard file from your project Modify the info.plist: Go to the NSExtension Dictionary, remove this key: NSExtensionMainStoryboard. Replace it with this key NSExtensionPrincipalClass and add your ViewController

nil object in iOS8 delegate methods - custom keyboards

守給你的承諾、 提交于 2019-12-02 19:02:00
I'm building a custom keyboard and I'm implementing the following delegate methods in my InputViewController . But I always get _textInput = nil_ - (void)textWillChange:(id<UITextInput>)textInput - (void)textDidChange:(id<UITextInput>)textInput - (void) selectionWillChange:(id<UITextInput>)textInput - (void) selectionDidChange:(id<UITextInput>)textInput Does anybody know how to fix it? Is it nil for a reason? Do I need to implement something by myself? Good question. But it seems that UITextInputDelegate is not a protocol that you implement. From Apple Docs titled Lower Level Text-Handling

Callback for MSSticker Peels in iOS 10 iMessage sticker app

六月ゝ 毕业季﹏ 提交于 2019-12-02 18:45:00
I'm experimenting with sticker iMessage apps in iOS 10 and I'm running into an issue with the override func didStartSending(_ message: MSMessage, conversation: MSConversation) method in MSMessagesAppViewController . When "peeling" a sticker from an MSStickerView , I would expect to receive some sort of callback on the didStartSending method. But it appears this is not the case. Does anyone know if this is the expected behavior and/or if there's another way to subscribe to callbacks for when these stickers are peeled, dragged, and dropped into the MSConversation ? I realize that didStartSending

What is the purpose of widgetPerformUpdateWithCompletionHandler in iOS 8 Today Widget?

大城市里の小女人 提交于 2019-12-02 18:00:49
Been looking around for an answer but everything seems vague or unclear. Anyways, just want to know what the purpose of the function: widgetPerformUpdateWithCompletionHandler does in the today widget. According to Apple : This method is called to give a widget an opportunity to update its contents and redraw its view prior to an operation such as a snapshot. When the widget is finished updating its contents (and redrawing, if necessary), the widget should call the completion handler block, passing the appropriate NCUpdateResult value. When does the snapshot ever happen? Whenever I debug the

How do I export text from iOS Notes app to my app?

﹥>﹥吖頭↗ 提交于 2019-12-02 17:10:46
问题 I know this is possible and is something many big apps do, but I can't figure out among UTIs, extensions, UIActivityTypes, etc. which spell I need to use for this in particular. I'm trying to add my app to the list of apps that appear when you hit the export button in the Notes app on iOS because I want to be able to take a bunch of text inside a note and repeatedly and safely send it into my app. I want my app to appear in this list, exporting directly from Notes. There appear to be