ios11

Failed to register for BoringSSL log debug updates

元气小坏坏 提交于 2019-12-03 05:01:09
问题 When debugging app in Xcode 9 beta while it's running on iPhone with iOS 11 beta installed, I started to notice following messages when performing networking calls: [] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates [BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty Any idea what is causing this? 回答1: Open the Xcode Scheme editor and add a new environment variable OS_ACTIVITY

NSURLConnection finished with error - code -1002

喜你入骨 提交于 2019-12-03 04:57:51
Friends i have simple audio player (MPMoviePlayerController) which can play audio stream. On iOS 11 i have very interessing trouble, thousand time i have error and my stream was stopped: NSURLConnection finished with error - code -1002 I paste this code (this code i saw on stackowerflow) but it's not help to me: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>cast.mysite.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSIncludesSubdomains</key> <true/> </dict> </dict> </dict> Maybe you know

iOS 11 large title navigation bar snaps instead of smooth transition

非 Y 不嫁゛ 提交于 2019-12-03 04:51:58
问题 I'm facing an issue where the large title navigation bar collapses very abruptly when scrolling on a UITableView embedded inside of a UIViewController. The problem seems to only occur when scrolling up on the screen. When scrolling down on the screen, the title transitions smoothly to being big again, but not vice versa. This issue does NOT occur if using a UITableViewController. Here is the normal, expected behavior when scrolling inside a UITableViewController. And here is the broken,

Autoresizing not working in iOS11 / XCode 9

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:18:20
It appears that the Autoresizing of views is no longer reliably working when building for iOS11 with XCode 9. The layout of several views end up with the positioning of controls as they are in the XIB, but the appropriate resizing has not happened. This has been working fine in iOS10, and works with our old app running in iOS11. However, rebuilding the app the positioning and sizing fails. Has something changed that impacts the use of autoresizingmask ? Is there a way to automatically convert from AutoResizing to AutoLayout and Constraints ? Edit: The controls that are giving trouble are the

iOS 11 beta 4 presentRenderbuffer crash

人走茶凉 提交于 2019-12-03 04:14:52
问题 My app crashes on iOS 11 beta 4 (15A5327g) when [EAGLContext presentRenderbuffer:] method is called. It happens only when I debugging in Xcode. When I launch app manually it doesn't crashed. On versions lower than iOS 11 beta 4 it doesn't crashed as well. How can I prevent this issue? You can see crash details in screenshot 回答1: Hodge's workaround works. Here is a screenshot of how to set the GPU Frame Capture argument to "Disabled" (in "Edit Scheme" window) 回答2: I was experiencing this same

iPhone X hide home indicator on view controller

纵饮孤独 提交于 2019-12-03 04:12:25
问题 I have a view controller that takes up the whole screen from top to bottom. I would like to hide the home bar indicator on the bottom of the screen on iPhone X devices. How can I do this in iOS 11? 回答1: You should override prefersHomeIndicatorAutoHidden in your view controller to achieve that: override var prefersHomeIndicatorAutoHidden: Bool { return true } 回答2: There is another alternative. If you are looking for the behavior where the indicator dims, then when the user swipes up it

UICollectionView in landscape on iPhone X

纵然是瞬间 提交于 2019-12-03 04:12:11
问题 When iPhone X is used landscape, you're supposed to check safeAreaInsets to make suitably large gutters on the left and right. UITableView has the new insetsContentViewsToSafeArea property (default true) to automatically keep cell contents in the safe area. I'm surprised that UICollectionView seems to not have anything similar. I'd expect that for a vertically-scrolling collection view, the left and right sides would be inset to the safe area when in landscape (and conversely, a horizontally

Detect add photos only permission

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 04:04:00
In ios 11 we now have "Add photos only" permission setting. But how we now determinate which photo library access level is set? [PHPhotoLibrary authorizationStatus] works only for "Read and Write" permission check. If app asked only for "Add photos only" permission then it stays PHAuthorizationStatusNotDetermined . If user changed it from "Read and Write" to "Add photos only" it gives PHAuthorizationStatusDenied . So, how can I tell if my app have permissions to do "Export to Camera Roll" feature, which dosen't require read permissions? since iOS 11, in order to gain only Write access you'll

Issue with iOS 11 full screen web app on iPad and the status bar

那年仲夏 提交于 2019-12-03 03:58:19
I have a full screen home screen web app that is designed for 1024x768 resolution so it fits perfectly on the iPad in landscape mode. Or at least, it did, until the iOS 11. This update now has content rendered under the status bar which pushed the entire page down 20 pixels. My meta-tags involved are as follows: <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="initial-scale=1,user-scalable=no,viewport-fit=cover"> I was under the impression that the "viewport-fit=cover" would

How to check if annotation is clustered (MKMarkerAnnotationView and Cluster)

て烟熏妆下的殇ゞ 提交于 2019-12-03 03:56:05
I'm trying to work with the new features added to the mapview in ios11. I'm clustering all my MKAnnotationView with circle collision but I have to check in real time when the annotation becomes clustered. I have no idea how to do that. EDIT (4/1/2018) : More informations : When I select an annotation I add a custom CallOutView when the didSelect method is called and remove the CallOut when the didDeselect method is called. The issue is when an annotation is selected and becomes clustered, when you zoom in the annotation is still selected but in "normal" state. I want to remove the CallOut of