ios-app-extension

iOS 8 Today Extension not working on device

微笑、不失礼 提交于 2020-01-22 17:42:48
问题 When I run my Today Extension on the simulator everything works fine and it displays the following as expected: However when I run it on my devices (iPod touch and iPhone 5s) the body won't show (don't mind the title and icon, that was changed) I attached the debugger to my extension and I got this: I have no idea what all of this means... I removed all code for the Today Extension to check if there was a problem with my code and nothing changed so I doubt theres a problem with my code. Any

iOS 8 Today Extension not working on device

浪子不回头ぞ 提交于 2020-01-22 17:42:05
问题 When I run my Today Extension on the simulator everything works fine and it displays the following as expected: However when I run it on my devices (iPod touch and iPhone 5s) the body won't show (don't mind the title and icon, that was changed) I attached the debugger to my extension and I got this: I have no idea what all of this means... I removed all code for the Today Extension to check if there was a problem with my code and nothing changed so I doubt theres a problem with my code. Any

Sharing Extensions in IOS Apps [closed]

南笙酒味 提交于 2020-01-16 19:40:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am new to the overall iOS Programming - Swift. I am wondering that if I create a project in xCode6 and then I would like to share an image that I took from my project for example to evernote, google drive, messages, email, facebook, twitter,so on and so on. So, how would I do that? Is it something, I need to

Open attachment from mail using ios 8 app [swift] [duplicate]

不想你离开。 提交于 2020-01-14 06:50:09
问题 This question already has answers here : How do I associate file types with an iPhone application? (4 answers) Closed 4 years ago . In my app, I designed a new encrypted type data as attachment to the mail. When I receive the same type of attachment(filename.filetype) from another user, I want the attachment from mail to open in my app. I went through the action extensions tutorials. But, what is missing is, how can I open that particular type of attachment using my swift app. I get the

iOS 10 iMessage app extension: how do i calculate the height of the extra tall navbar

元气小坏坏 提交于 2020-01-09 12:53:35
问题 I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into an issue with their seemingly nonstandard nav bar height when i transition into the app's expanded view, my image with the following frame CGRect(x: 0, y: 0, width: 100, height: 100) ends up partially hidden behind the nav bar. i would like it to appear below the nav bar. i tried self.navigationController?.navigationBar.isTranslucent = false but it didn't work, which i guess makes

iOS 10 iMessage app extension: how do i calculate the height of the extra tall navbar

北战南征 提交于 2020-01-09 12:53:12
问题 I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into an issue with their seemingly nonstandard nav bar height when i transition into the app's expanded view, my image with the following frame CGRect(x: 0, y: 0, width: 100, height: 100) ends up partially hidden behind the nav bar. i would like it to appear below the nav bar. i tried self.navigationController?.navigationBar.isTranslucent = false but it didn't work, which i guess makes

Sharing code between original iOS App and App Extension

不想你离开。 提交于 2020-01-09 07:30:19
问题 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 the extension folder, but I of course get a invalid redeclaration of [my class] error. What's the best solution for this? It's just one class, not multiple resources. 回答1: Nothing should be copied. Just add required files to compile sources for

Scan functionality doesn't work on Action Extension(no camera opening to scan )

我的梦境 提交于 2020-01-07 02:56:06
问题 i am able to implement buttonactions,tableview,textfields ,switch... all are working fine in ActionExtension BUT Scan Functionality doesn't work (no camera opening to scan ) in Action Extension . Below i shared my scanning code in swift and screenshot of my Extension Declarations : var scannedBarcode = NSString(string: "") var scannedMetadataOutput = AVCaptureMetadataOutput() var gCaptureMetadataOutput = AVCaptureMetadataOutput() var _prevLayer = AVCaptureVideoPreviewLayer() var _session =

iOS: I installed the Share Extension, but impossible to get the image selected from the gallery in my App

时间秒杀一切 提交于 2020-01-06 06:28:38
问题 I used that Tutorial but impossible to get the selected image in my App. I created with "New/File/Target", then I added a group in the "Capabilities". I can see the share icon when I go to the image gallery, but it does nothing when I click on the button. Code Example: - (BOOL)isContentValid { // Do validation of contentText and/or NSExtensionContext attachments here return YES; } - (void)didSelectPost { // This is called after the user selects Post. Do the upload of contentText and/or

Proper implementation of handleInputModeList in Custom Keyboard

眉间皱痕 提交于 2020-01-03 03:10:53
问题 A new API has been added in iOS 10 to present the list of other keyboards the user can switch to - the same list that appears when users long press the globe on a system keyboard. The declaration of the function is as follows: func handleInputModeList(from view: UIView, with event: UIEvent) My question is, what's the proper way to generate a UIEvent to supply? I was planning to call this function using a UILongPressGestureRecognizer but this API doesn't reveal UIEvent s. 回答1: I was going