ios10

iOS 10 Messages Extension - Wrong Layout when using Storyboard Segue

こ雲淡風輕ζ 提交于 2019-12-21 04:20:51
问题 When using Segues in Messages Extension Application the layout gets messed up. Is there any way to solve this issue while still using storrybord segues? Screenshots: (Note: The first and second View / ViewController are identical. The segue-type doesn't matter) Expanded Presentation Style: Compact Presentation Style: Update 1: The top and bottom layout guides reset after a segue compact: top: should be: 0 but is: 20 bottom: should be: 44 but is: 0 expanded: top: should be: 86 but is: 20

Handling AutoLayout constraint animation differences in iOS 10?

馋奶兔 提交于 2019-12-21 03:11:22
问题 I've noticed that in iOS 10 Beta 5 (about to try Beta 6), AutoLayout constraint animation behaves a bit differently. For example, this approach does not work the same as it did in previous iOS releases: [view addConstraints:@[constraints...]]; [view setNeedsUpdateConstraints]; [view layoutIfNeeded]; [UIView animateWithDuration:... { /* adjust constraint here... */ [view layoutIfNeeded]; // Only the adjusted constraints since previous layoutIfNeeded() call should animate change with duration.

Cordova iOS 10.3.1 breaks input file for videos

为君一笑 提交于 2019-12-21 02:42:54
问题 This is similar to this much older issue: HTML file input with multi selection in UIWebView not working for videos This is NOT a duplicate of this: iOS update to 10.3.1 breaks HTML input element I have tested this on my app that was working, on versions going back 45 days, it seems iOS 10.3.1 changed the file input and now there is the multiple video selection, without the "compressing" stage that occurred after selection and before switching out of the interface. Tested on iphone 6S. When

dlopen() from sandbox in iOS 10 is blocked

廉价感情. 提交于 2019-12-21 02:40:13
问题 i'm using dlopen() to load dynamic framework from documents directory, it's working good below iOS10, but in iOS10 it does not work anymore,and console's log is: file system sandbox blocked mmap() of '/var/mobile/Containers/Data/Application/71EB4588-A83F-4AF0-9409-DD09AFB2CA77/Documents/MyDylib.framework/MyDylib' how can i solve this problem? 回答1: in iOS10 the framework cannot save to the Documents dir or subdir. you must put the framework under to the YouAppName.app/ 来源: https:/

iOS 10 barTintColor animation

若如初见. 提交于 2019-12-20 20:37:33
问题 I've noticed a change in the way bar tint color animates in ios 10. I've created a sample project outlining the change: Github: ios10BarTintDemo Basically on ios 9 the barTintColor animates smoothly using [UIViewControllerTransitionCoordinator animateAlongsideTransition] but on ios 10 the animations are much less smooth and when popping a view controller doesn't animate at all, I've tried adding [self.navigationController.navigationBar layoutIfNeeded] as mentioned in some similar answers but

Returning CGFloat.leastNormalMagnitude for UITableView section header causes crash

假如想象 提交于 2019-12-20 20:29:36
问题 I made an app for iOS 8 which uses grouped UITableView for one of its page. There are multiple sections in it that uses CGFloat.leastNormalMagnitude (or CGFloat.min in Swift 2 and below) for section header and footer height to remove the "default" space. Everything went well until the app run in iOS 9 and 10, where it crashes with this error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'section header height must not be negative - provided height for

Where is SF Mono font?

本秂侑毒 提交于 2019-12-20 20:21:25
问题 I'm looking at the video of WWDC 2016 Session 803, Typography and Fonts . The video spends quite a lot of time talking about a font called SF Mono , the third member of the San Francisco font family, showing it off in different weights and character sets. Sounds great. I'm ready to use it in the iOS 10 version of my app. There's just one problem: Where is it? It doesn't seem to be included in iOS itself, and when I download San Francisco from Apple, it isn't included there either. I know I

Where is SF Mono font?

前提是你 提交于 2019-12-20 20:19:13
问题 I'm looking at the video of WWDC 2016 Session 803, Typography and Fonts . The video spends quite a lot of time talking about a font called SF Mono , the third member of the San Francisco font family, showing it off in different weights and character sets. Sounds great. I'm ready to use it in the iOS 10 version of my app. There's just one problem: Where is it? It doesn't seem to be included in iOS itself, and when I download San Francisco from Apple, it isn't included there either. I know I

UISwitch setOn(:, animated:) does not work as document

六眼飞鱼酱① 提交于 2019-12-20 20:02:43
问题 As Apple's document write, UISwitch 's function setOn(on: Bool, animated: Bool) does not send action. It works fine before iOS 10, but it will send action after I call it in iOS 10. I call it in "ValueChanged" event to force switch back, so I got this event action twice. is it a bug in iOS 10? 回答1: DispatchQueue.main.async { sender.setOn(flag, animated: animated) } it works for me in Xcode 8. but call UISwitch.setOn(_:animated:) directly on main thread doesn't work. Update thanks to

Unit testing iOS 10 notifications

两盒软妹~` 提交于 2019-12-20 19:43:39
问题 In my app I wish to assert that notifications have been added in the correct format. I'd normally do this with dependency injection, but I can't think of a way to test the new UNUserNotificationCenter API. I started to create a mock object which would capture the notification request: import Foundation import UserNotifications class NotificationCenterMock: UNUserNotificationCenter { var request: UNNotificationRequest? = nil override func add(_ request: UNNotificationRequest,