ios10

How do I debug my Siri (Intents) extension?

我与影子孤独终老i 提交于 2019-12-06 01:43:22
问题 I'm building a Siri aka Intents extension . I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at least for some time, Siri is showing clear responses. By the Apple documentation, you should run the Extension Scheme with Siri as host app. However, if I try that nothing happens on the device, it's waiting to attach for ever. Apple mentions the

iOS 10: Custom UITabBar background image produces border at top of image. How do I remove it?

廉价感情. 提交于 2019-12-06 01:26:27
问题 Anyone have a working solution to get rid of this border in iOS 10? I have a custom UITabBar background image. I've tried the following with no results: tabBar.backgroundImage = UIImage(named: "myBackgroundImage.png") tabBar.shadowImage = nil tabBar.shadowImage = UIImage() // i've also tried combinations of this in the storyboard directly I finally threw my hands up in the air and set the bar style to "Black".. this doesn't get rid of the border, but makes it white. So it hides it. 回答1: If

iOS 10 Camera view showing API_Cancel_Title instead of Cancel

血红的双手。 提交于 2019-12-06 01:18:52
问题 I am working on an app using iOS 10 and using camera for taking pictures. When camera view opens, instead of cancel button there is a title "API_CANCEL_TITLE". And when I capture the pic the whole title is seeing, I want that instead of this long title it will be look "Cancel". I have used app localization. I searched few links but could not find the solution. Here is the screen shot: This is happening only in iOS 10, in iOS 9 it will working correctly here is the code: - (IBAction

iOS10 UI教程子视图和父视图UI层次结构和Views继承

蓝咒 提交于 2019-12-06 01:01:56
iOS10 UI教程子视图和父视图UI层次结构和Views继承 iOS10 UI教程子视图和父视图UI层次结构和Views继承,本节将讲解与UI层次结构和Views继承相关的内容,其中包括子视图和父视图、管理层次结构、视图和子视图的可见性、层次结构的事件等内容。 子视图和父视图 每一个UIView(或者是子类)的实例都可以与其它的视图使用父-子关系的方式进行连接。其中父视图被称为superview(超视图),孩子视图被称为subviews(子视图)。一个视图可以有且仅有一个父视图,但是可以有多个子视图,如图所1.12示。 图1.12 父视图和子视图 对于父视图的访问开发者可以使用superview属性,其语法形式如下: var superview: UIView? { get } 对应子子视图的访问可以使用subviews属性,其语法形式如下: var subviews: [UIView] { get } 【示例1-6:SuperViewAndSubView】以下将通过superview属性和subviews属性对空白视图的背景颜色进行设置。具体的操作步骤如下: (1)打开Main.storyboard文件,从视图库中拖动View空白视图到View Controller的主视图中,将此空白视图的位置和大小调整为(16, 107, 343, 423)

Its just impossible to add an action extension icon

一曲冷凌霜 提交于 2019-12-06 00:29:32
I've been literally trying for two weeks to get an icon for an action extension to appear, but absolutely nothing works. I've seen past questions such as this iOS 8 Action Extension icon sizes and this Why isn't my iOS8 Application Action Extension App Icon showing up? but they are of no use. I've created an Xcode template project purely to try every combination of things mentioned in the other questions, still without avail. 1) The first thing that's mentioned is that the action extension should have its own asset catalog, ok here it is: 2) Secondly that it should contain an app icon image

ios 10 swift 3 add more than 64 local notifications does not keep soonest

青春壹個敷衍的年華 提交于 2019-12-06 00:14:07
As we know limit of local notifications in ios 10 equals to 64. However app like water reminder requires a lot of notification per day and user can choose unique plan for each of the day. The problem is: lets say I have already stored 64 notifications (10 for monday, 8 for tuesday and etc., they are all scheduled as repeated weekly) <UNCalendarNotificationTrigger: 0x6000008292e0; dateComponents: <NSDateComponents: 0x600000352fe0> Hour: 1 Minute: 3 Second: 0 Weekday: 6, repeats: YES> (lldb) po trigger.nextTriggerDate() ▿ Optional<Date> ▿ some : 2017-06-01 22:03:00 +0000 -

Address Book crash on iOS10

倾然丶 夕夏残阳落幕 提交于 2019-12-06 00:10:38
Selecting a contact from contact picker crashes the app in iOS10.0. Contacts picker is shown using ABPeoplePickerNavigationController like this: let contactsPicker = ABPeoplePickerNavigationController() contactsPicker.peoplePickerDelegate = self self.presentViewController(contactsPicker, animated: true, completion: nil) Here is the stack trace from crash log: *** Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.' *** First throw call stack: ( 0 CoreFoundation 0x0000000105a1c34b __exceptionPreprocess + 171

UserDefaults.standard set nil Error in XCode 8 and Swift 3

ぐ巨炮叔叔 提交于 2019-12-05 23:48:46
This seems a bug. I am trying to remove an existing value in the defaults. UserDefaults.standard.set(nil, forKey: "test-me") let val = UserDefaults.standard.object(forKey: "test-me") print ("val=\(val)") I got the following output - val=Optional(<62706c69 73743030 d4010203 04050608 09582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a1 0755246e 756c6c5f 100f4e53 4b657965 64417263 68697665 72d10a0b 54726f6f 74800008 111a232d 3237393f 51545900 00000000 00010100 00000000 00000c00 00000000 00000000 00000000 00005b>) I am running in XCode 8 / iOS 10 / iPhone 7

xcode 8 beta ios 10 push notifications stopped working

穿精又带淫゛_ 提交于 2019-12-05 19:04:30
After switching to xcode 8 beta my push notifications have stopped working. My code signing identity for release is set to distribution. I am registering the device, receiving the token and successfully uploading it to my server without any problem. But the status of the push messages is failed. Just wondering if i need to make any changes or if it will not work with a beta version of xcode. In the targets, under Capabilities and Push Notifications I needed to add the push notification entitlement to my entitlements file. This was done just by clicking the button that appeared here with the

Wait till local notifications from UNUserNotificationCenter gets deleted using removePendingNotificationRequests ios 10 swift 3

╄→гoц情女王★ 提交于 2019-12-05 19:00:54
Using new local notifications from UNUserNotificationCenter . I try to delete notification with some identifiers: UNUserNotificationCenter.current().removePendingNotificationRequests(withIdentifiers: identifiers) and from documention: This method executes asynchronously, removing the pending notification requests on a secondary thread. Completion handler is not present. So how do I know when its really get deleted? Before moving ahead, I need to make sure that this identifier is not present anymore. I know I can use next code notificationCenter.getPendingNotificationRequests { (requests) in