ios10

Is there still a ~64 local notification limit for the new UserNotifications in iOS 10?

吃可爱长大的小学妹 提交于 2019-12-03 17:33:21
In everything before iOS 9 there was a limit of 64 notifications that could be scheduled at any one time. Is this still true with the new notification system or can I schedule as many in advance as I'd like with the new UNUserNotifications? Yes. I just updated an app of mine that schedules a lot of local notifications and the 64 limit is still in place. 来源: https://stackoverflow.com/questions/40685128/is-there-still-a-64-local-notification-limit-for-the-new-usernotifications-in-i

Xcode 9: how to install ios 10 sdk

北城余情 提交于 2019-12-03 17:09:39
问题 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

UITextfield text position not animating while width constraint is animated

送分小仙女□ 提交于 2019-12-03 16:53:28
I have three UITextField aligned in a container used to choose a date. At first only the month textfield is shown in the container and takes the full width, then when the user chose the month, the day textfield appear and they both take half of the container. The text alignement in these textfields is centered. My problem is that when I animate their size, the text doesn't animate and jumps directly to the final position while the width of the textfields animate correctly . Step 1 : The TextField Before Animation Step 2 : The TexField width is animating but the text is already in the final

CNContactViewController hiding navigation bar

蹲街弑〆低调 提交于 2019-12-03 16:46:31
When I push a CNContactViewController on to the stack of UITableViewController subclass which is within a UINavigationController , the top navigation bar is almost entirely hidden. But with the brightness all the way up, you make out the back arrow followed by the word "Detail", and the system status bar. When I tap that corner of the screen, the CNContactViewController is indeed dismissed. Of course this is not good, since a user would probably not even see the text of the navigation bar and now to press any buttons to dismiss. Is there any way to make the navigation bar tint of the

Autoresizing under iOS 10 doesn't work

别等时光非礼了梦想. 提交于 2019-12-03 16:22:46
I had a app that works without AutoLayout and Constraints. I only set the autoresizing in the size inspector. Under iOS 9 and earlier works all fine. Under iOS 10 the autoresizing doesn't work and set the size out of the screen. Look at the following picture : Under iOS 10 in the simulator The same is happened on a iPhone 5 and iPhone 6 Plus. What can I do, that the autoresizing works fine. Edit 1: Another workaround is to set the storyboard to Xcode 7.x version. You can do this in the File Inspector under Interface Builder Document . To set the option Opens in to the value Xcode 7.x . Answer

What is Core Audio error 561015905 and why does it happen when I use the lock button?

别来无恙 提交于 2019-12-03 15:40:13
Since upgrading to iOS 10 and Xcode 8, my iOS app has been throwing an error and crashing whenever I turn off the screen using the lock button. The error is: *** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'error 561015905' I'm not explicitly using Core Audio, or any audio at all. But I am using SceneKit, which I assume uses Core Audio. Actually this behavior doesn't seem to be related to my code at all. It happens on a brand new untouched SceneKit template! It doesn't happen in the simulator, but it happens consistently testing with an iPhone 5. I haven't

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

 ̄綄美尐妖づ 提交于 2019-12-03 15:31:34
问题 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

UIAlertController background color iOS10

这一生的挚爱 提交于 2019-12-03 13:49:21
问题 Code that I wrote for iOS9, worked really well: UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Select source" message:nil preferredStyle:UIAlertControllerStyleActionSheet]; alert.view.backgroundColor = DARK_BLUE; alert.view.tintColor = NEON_GREEN; UIView *subview = alert.view.subviews.firstObject; UIView *alertContentView = subview.subviews.firstObject; alertContentView.backgroundColor = DARK_BLUE; alertContentView.layer.cornerRadius = 10; My point of view is that

CoreBluetooth advertising in background on iOS 10

a 夏天 提交于 2019-12-03 13:33:24
First: I have an iPad Air 2, and an iPhone 7. For further reading we estimate that the app is active and open on iPad and in background mode on iPhone. The app is exactly the same, even with same Bluetooth Service UUIDs and same DataLocalNameKey. I want to write an app that can advertise a bluetooth service in background and is able to discover this service (optimal in background too). As I already read I can't use apples beacon technology cause there it's only possible to get scanning/notified by beacons in near in background (I tested this, works fine) but not to advertise. So I started to

collectionViewContentSize in iOS 10 using self-sizing cells

China☆狼群 提交于 2019-12-03 13:15:35
Prior to iOS 10, I had a self-sizing table view that solely consisted of a UICollectionView with self-sizing cells using a standard UICollectionViewFlowLayout. The collection view cells are sized using auto-layout. In order for the table cell to size itself correctly, I had to find the collection view's content size and use that within the table cell's systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:. I also found that the call to collectionView.collectionViewLayout.collectionViewContentSize used the estimatedItemSize instead of the correctly sized cell sizes