ios11

iOS11 vision framework mapping all face landmarks

不问归期 提交于 2019-12-02 22:59:43
I am playing with vision framework and getting all landmark points with this code: if let allFaceLandmarks = landmarks.allPoints { print(allFaceLandmarks) } But cant find mapping for these points. For example index numbers for right eye. Looking for something the same as this , but for Vision framework instead. I have no clue why apple doesn't provide a graphic of this. It seems like it would be super helpful information to give people in the docs. At any rate, I was able to read the allPoints property of the observation and draw them out with numbers. I'm not really sure about the difference

What are the model names for IPhone 8 and iPhone X? [duplicate]

泄露秘密 提交于 2019-12-02 22:37:16
问题 This question already has answers here : iPhone 8, iPhone 8 Plus and iPhone X device code (2 answers) Closed 2 years ago . Can anyone who have access to iPhone 8 and iPhone X let me know the model names? It could be accessed by UIDevice.current.modelName . 回答1: The information as @Anbu mentioned are: iPhone 8: iPhone10,1 and iPhone10,4 iPhone 8 Plus: iPhone10,2 and iPhone10,5 iPhone X: iPhone10,3 and iPhone10,6 Remember if you want to use UIDevice.current.modelName you need to create your own

Xcode9 code coverage is not displayed

与世无争的帅哥 提交于 2019-12-02 22:12:41
I have been trying to get the code coverage for my project using Xcode 9 . All test case run successfully but did not generate the code coverage report under Code coverage tab. I tried following things: Enable the Gather code coverage in scheme. Enable Code Coverage Support for my target. Enable the Show case bundle option. Is there extra setting require to check code coverage report ? or should I missed something ? Thanks in advance. krishnendra Issue Resolve in Version 9.3, to get the code coverage Target -> Test -> Options -> CodeCoverage See image: If you want to see the code coverage in

iOS 11 inputAccessoryView broken

社会主义新天地 提交于 2019-12-02 22:03:27
问题 I have the following set up for my UIToolBar / Accessory View on a view controller @IBOutlet var inputFieldView: UIToolbar! override var canBecomeFirstResponder: Bool{ return true } override var inputAccessoryView: UIView?{ return self.inputFieldView } then inside my viewDidLoad I have: let seperator = UIView(frame: CGRect(x:0 , y: 0, width: ScreenSize.width(), height: 1)) seperator.backgroundColor = UIColor.lightBackground self.inputFieldView.addSubview(seperator) self.inputFieldView

Open specific item in Settings app from my app in iOS 11

☆樱花仙子☆ 提交于 2019-12-02 21:06:11
问题 I have studied several answers and haven't found any that would work for iOS 11. I want to show the way to switch Background App Refresh on for my user. To do that I want to open Settings/General/Background App Refresh menu from my app. The following code only opens root menu of the Settings app. guard let url = URL(string: "App-Prefs:root=General&path=BACKGROUND_APP_REFRESH") else { return } UIApplication.shared.open(url, options: [:], completionHandler: nil) Is there any way that would be

iOS11 customize navigation bar height

烂漫一生 提交于 2019-12-02 20:54:48
First of all, thank you for coming here and help solving my problem. Thank you!!! In iOS11 beta6, sizeThatFits: seems to not work on UINavigationBar. I notice that UINavigationBar structure has changed by Reveal my app. I have tried my best to change custom navigation bar's height. But it seems always to be 44 , and it works before iOS11. - (CGSize)sizeThatFits:(CGSize)size { CGSize newSize = CGSizeMake(self.frame.size.width, 64); return newSize; } Oddly, I just log its frame in didMoveToSuperview method, its height is 64, but I really see that is 44 in Reveal and app. I have no idea about

How to transform vision framework coordinate system into ARKit?

耗尽温柔 提交于 2019-12-02 19:29:47
I am using ARKit (with SceneKit) to add the virtual object (e.g. ball). I am tracking real world object (e.g. foot) by using Vision framework and receiving its updated position in vision request completion handler method. let request = VNTrackObjectRequest(detectedObjectObservation: lastObservation, completionHandler: self.handleVisionRequestUpdate) I wants to replace the tracked real world object with virtual (for example replace foot with cube) but I am not sure how to replace the boundingBox rect (which we receive in vision request completion) into scene kit node as coordinate system are

iOS 11 UITableView bug

*爱你&永不变心* 提交于 2019-12-02 18:41:22
The bug can be reproduced using the repo here . I have a strange bug affecting my project in iOS 11 in my UITableView. The TableView in question is grouped, has expandable cells. Many weird effects happen that are not appearing on my iOS 10 branch: Titles superposes weird teleport issues when content size is above the UITableView container size when the collapsing of the cells occur Weird teleport to top of tableview at the beginning of the scrolling when content size exceeds the container's size Cell sizing is wrong (quite often) There is also a ticket that seems related on the Apple

Failed to register for BoringSSL log debug updates

血红的双手。 提交于 2019-12-02 18:40:14
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? Open the Xcode Scheme editor and add a new environment variable OS_ACTIVITY_MODE and set to disable . This approach seems to stop all NSLog logging, which is a problem. For a more

Does LSApplicationWorkspace not work on iOS 11?

空扰寡人 提交于 2019-12-02 18:23:26
I have an app in private which need to scan all applications and schemes and get it by using private API LSApplicationWorkspace defaultWorkspace with others functional method, such as privateURLSchemes allInstalledApplications . This app works good and I can get all I need from the private API before iOS 11, but in this version I only got some warning and an empty array. It seems Apple limits private API that developer can't use in private in iOS 11. So my question is what alternative ways can achieve my need in iOS 11? UPDATE: This method does not work on iOS 12 - entitlement required There