ios10

Returning CGFloat.leastNormalMagnitude for UITableView section header causes crash

隐身守侯 提交于 2019-12-03 06:31:49
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 section 0 is -0.00000' Somehow, any value under 1 (except the rounded 0 ) is treated as a negative -

Where is SF Mono font?

江枫思渺然 提交于 2019-12-03 06:26:33
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 could pull a copy out of Xcode 8 itself and include that in my app, but surely that isn't the intended

UIViewPropertyAnimator different behaviour on iOS10 and iOS11 reversing an animation. Bug on `isReversed` and `fractionComplete` properties?

梦想与她 提交于 2019-12-03 06:15:20
THE PROBLEM Running the same code on iOS10 and iOS11 my UIViewPropertyAnimator has a different behaviour just after changing of his .isReversed property. Everything is ok on iOS10. The animation problem happens on iOS11 CONDITIONS It's true for any animations, not only for a particular one, and it is verifiable both by watching the animation and within the code. It happens both on simulators and real devices. DETAILS Once created a UIViewPropertyAnimator with his animation, during its running I just call .pauseAnimation() and change the .isReversed property to true . After that I resume the

Got an error when trying to get the geolocation in safari on iOS 10

半世苍凉 提交于 2019-12-03 06:05:06
[blocked] Access to geolocation was blocked over insecure connection to http://www.hnsjb.cn . Should I change my website to the https protocol? iOS 10 and also desktop Safari 10 seem to require https connection now. Safari also seems to be more strict than what Chrome did earlier. No mixed content warnings are allowed, Chrome allows e.g. map tiles to load over normal http. I could not find any guideline specific to Safari, but this issue has been discussed by other web browsers as well. In particular, the announcement about Google Chrome blocking geolocation over an insecure connection,

Xcode 9: how to install ios 10 sdk

旧街凉风 提交于 2019-12-03 06:02:27
Given the fact that currently Xcode 9 is beta and the main interest today is getting knowledge of iOS 11 the question is admittedly odd... Is there a way to target iOS 10 as base sdk while working in Xcode 9 beta? Is there need for Apple to package the SDK for Xcode 9 the same way they do for previous OS's in Xc8? Why would one want this? a) The first thing that comes to mind is to use Xcode 9 nice new refactoring tools on a project that involves code that needs changes from iOS 10 to 11, but has currently to run on iOS 10. b) the sake of experimenting.. Using this and this I was able to

iOS Keyboard (inside UIRemoteKeyboardWindow) is Not Shown When UITextField Becomes First Responder in Touch ID Completion Block (iOS 10)

ⅰ亾dé卋堺 提交于 2019-12-03 05:59:54
I've recently discovered a problem in my app that only seems to occur in iOS 10 where the system keyboard does not display when programmatically triggering a text field to become first responder inside of a completion handler -- specifically the completion handler I get back from a Touch ID attempt. The crazy part of this issue is, even though the keyboard is not shown, the area on the iPhone where the keyboard normally would be is still responding to touch inputs as if the user is typing on the keyboard! After doing a lot of investigation and debugging into the issue, I stumbled across the

How to resize the collection view cells according to device screen size?

六月ゝ 毕业季﹏ 提交于 2019-12-03 05:53:19
问题 I noticed that the cells would always follow the definition in size inspector. Even if I have already applied UICollectionViewDelegateFlowLayout. So that's how it looks. But I want the cells to rather look like how it was on a smaller iphone screen. 回答1: Swift func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let height = view.frame.size.height let width = view.frame.size.width // in

iOS10 UNNotificationServiceExtension not called

[亡魂溺海] 提交于 2019-12-03 05:49:26
问题 Im implementing new iOS10 extension to use rich notifications. Im trying to test it on push notifications but is not working, I just receive a simple notification and is not going through the extension. I did all that it's specified in the official sites and some other places: I have my app up and running with push notifications and the right provisioning profile I added a new target to my app, a Notification Service Extension Implemented my own code (it doesn't matter really because is not

System group container for systemgroup.com.apple.configurationprofiles path

倖福魔咒の 提交于 2019-12-03 05:23:17
问题 When i run my application in ios 10 using xcode 8 i am getting below message in debug console but everything is working fine. My application is using camera and photo library, and i had added " Privacy - Camera Usage Description " and " Privacy - Photo Library Usage Description "in info.plist. Can any one tell me why this message in comming [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple

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