ios11

UINavigationBar with Large Titles - how to find extra height in iOS 11

巧了我就是萌 提交于 2021-02-07 06:07:04
问题 When using prefersLargeTitles for a UINavigationController 's UINavigationBar in iOS 11 , the nav bar increases height. The increase is from 44 to 96 on the iPhones I have checked, but I think those numbers can change per device (or at least we need to code as if they can). I want to programmatically find the 'extra' height - the height of the large titles area that is added beneath the traditional UINavigationBar when a large title is displayed. I can easily find the entire height of the bar

UINavigationBar with Large Titles - how to find extra height in iOS 11

无人久伴 提交于 2021-02-07 06:05:56
问题 When using prefersLargeTitles for a UINavigationController 's UINavigationBar in iOS 11 , the nav bar increases height. The increase is from 44 to 96 on the iPhones I have checked, but I think those numbers can change per device (or at least we need to code as if they can). I want to programmatically find the 'extra' height - the height of the large titles area that is added beneath the traditional UINavigationBar when a large title is displayed. I can easily find the entire height of the bar

Twitter Sharing in iOS 11

六眼飞鱼酱① 提交于 2021-02-07 04:54:07
问题 I would like to ask for clarification about Twitter sharing in iOS 11 onwards. The official Apple documentation states in the release notes the following: Social accounts have been removed from Settings in iOS 11. Third-party apps no longer have access to those signed-in accounts. (31687059) And the official Twitter documentation here states that: iOS 11 no longer supports using Twitter through the built-in social framework. Instead, you can use Twitter Kit 3 to Tweet, log in users, and use

Combining CoreML and ARKit

不问归期 提交于 2021-02-06 09:24:34
问题 I am trying to combine CoreML and ARKit in my project using the given inceptionV3 model on Apple website. I am starting from the standard template for ARKit (Xcode 9 beta 3) Instead of intanciating a new camera session, I reuse the session that has been started by the ARSCNView. At the end of my viewDelegate, I write: sceneView.session.delegate = self I then extend my viewController to conform to the ARSessionDelegate protocol (optional protocol) // MARK: ARSessionDelegate extension

How can I add a custom view on the large title view of UINavigationBar introduced in iOS 11

女生的网名这么多〃 提交于 2021-02-05 20:32:28
问题 I want to add a custom subview on the large title view of UINavigationBar as App Store is doing in iOS 11. ("user icon" on right side) We can access the traditional navigation bar area via UINavigationItem.titleView, but it seems that there is no API to access large title view area. https://developer.apple.com/documentation/uikit/uinavigationitem/ https://developer.apple.com/documentation/uikit/uinavigationbar/ I confirmed the name is "_UINavigationBarLargeTitleView" using View Hierarchy

How can I add a custom view on the large title view of UINavigationBar introduced in iOS 11

亡梦爱人 提交于 2021-02-05 20:32:24
问题 I want to add a custom subview on the large title view of UINavigationBar as App Store is doing in iOS 11. ("user icon" on right side) We can access the traditional navigation bar area via UINavigationItem.titleView, but it seems that there is no API to access large title view area. https://developer.apple.com/documentation/uikit/uinavigationitem/ https://developer.apple.com/documentation/uikit/uinavigationbar/ I confirmed the name is "_UINavigationBarLargeTitleView" using View Hierarchy

Device support for Core NFC? does it work on iPad?

…衆ロ難τιáo~ 提交于 2021-02-04 17:53:05
问题 Does Core NFC works on iPad? To sum up, iPad does have NFC chips, but the Core NFC documentation does not say it support it. Note Reading NFC NDEF tags is supported on iPhone 7 and iPhone 7 Plus. running this iOS11-NFC-Example on emulator will always get Feature not supported on all devices. 回答1: No ! for now Core NFC don't support iPads and iPhone lesser than iPhone 7. iPhone Series of 7, 8 and iPhone X only supported by Core NFC. and if you want to identify in your code that the device your

How to implement iOS 11's MKUserTrackingButton

╄→гoц情女王★ 提交于 2021-02-04 04:56:56
问题 I'm trying to implement a MKUserTrackingButton (which is new in iOS 11 SDK). This "button" actually inherits from UIView so I just put a UIView instance on my Map and in the Identity Inspector, linked it to the MKUserTrackingButton class, added an outlet in my code and in viewDidLoad(). I initialize it the following way: self.centerMapButton = MKUserTrackingButton.init(mapView: self.mapView) However, nothing works, I just have a blank view on my Map. PS: Here's the WWDC 2017 session about

UIWebView show overlapping status bar in ios-11, iPhone-X, Xcode-9

扶醉桌前 提交于 2021-01-29 10:55:06
问题 I'm loading a web with UIWebView, everything works fine except that the iphoneX is cut off the bar where I put an "OK" button and a label with a title. // webView var webView: WKWebView! override func viewDidLoad() { super.viewDidLoad() let myURL = URL(string: "https://google.com") let myRequest = URLRequest(url: myURL!) webView = WKWebView(frame: CGRect( x: 0, y: 60, width: self.view.frame.width, height: self.view.frame.height - 60 ), configuration: WKWebViewConfiguration() ) //webView

iOS 11 AVPlayerViewController Disable Pinch / Drag Gesture

让人想犯罪 __ 提交于 2021-01-08 02:31:06
问题 I have an AVPlayerViewController setup to play a video and them I am in-bedding the VC's view in a custom view controller. But if they user tries they can move the video around by 2 finger grabbing. How do I disable this? Thanks! See Below: 回答1: Try something like this before start playing video var positions = [Int]() for (idx, recognizer) in (playerVC.view.subviews[0].gestureRecognizers?.enumerated())! { if recognizer is UIPinchGestureRecognizer || recognizer is UIPanGestureRecognizer {