iphone-x

Can I require a user to have a True Depth camera to download my app from the App Store?

风格不统一 提交于 2019-12-01 16:02:22
An app I want to make only makes sense with a TrueDepth camera for ARKit and augmented reality face tracking capability. Can I require a user to have a True Depth camera(iPhone X only right now) to download my app from the App Store? No. Apple's mechanism for segregating App Store listings by device capabilities does include a front-depth-camera key. However, that key is not enabled for use by third-party apps , and Apple doesn't include it in the list of device capabilities that third-party apps can use to limit App Store availability of an app. If you include that key in your app's Info

Navigation Bar issue in iPhone X? [duplicate]

孤街浪徒 提交于 2019-12-01 10:46:40
This question already has an answer here: Seeing black bars at the top and bottom of the iPhone X Simulator 9 answers When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same. How to solve this? I suppose you are not using storyboard for launch screen. There are two options to fix this. Use storyboard as LaunchScreen. If you are using Launch Image Source for launch screen add launch screen image for iPhoneX. 来源: https://stackoverflow.com/questions/46909424/navigation-bar-issue-in-iphone-x

Navigation Bar issue in iPhone X? [duplicate]

房东的猫 提交于 2019-12-01 08:43:52
问题 This question already has answers here : Seeing black bars at the top and bottom of the iPhone X Simulator (9 answers) Closed 2 years ago . When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same. How to solve this? 回答1: I suppose you are not using storyboard for launch screen. There are two options to fix this. Use storyboard as LaunchScreen. If you are using Launch Image Source for launch screen add launch screen image

TableView and the home indicator on iPhone X

送分小仙女□ 提交于 2019-12-01 06:20:35
I am using both UITableViewController and UITableView in one project. An UITableView in an UITableViewController overlays the home indicator on iPhone X. But an UITableView in an UIViewController doesn't overlay the home indicator on iPhone X. Should I fit one? And which one is correct when I consider about safe area? e.x. You can continue to use a UITableView on a standard UIViewController . Just set auto layout so the bottom of the tableview is flush with the bottom of the superview (and not the margin). Then set the insetsContentViewsToSafeArea property of the tableview to true Swift: if

TableView and the home indicator on iPhone X

房东的猫 提交于 2019-12-01 03:56:45
问题 I am using both UITableViewController and UITableView in one project. An UITableView in an UITableViewController overlays the home indicator on iPhone X. But an UITableView in an UIViewController doesn't overlay the home indicator on iPhone X. Should I fit one? And which one is correct when I consider about safe area? e.x. 回答1: You can continue to use a UITableView on a standard UIViewController . Just set auto layout so the bottom of the tableview is flush with the bottom of the superview

Adding launch image using LaunchScreen.storyboard in xamarin.ios

廉价感情. 提交于 2019-12-01 03:47:05
问题 I am working on Xamarin.ios and using visual studio for development. I have added LaunchScreen.Storyboard for displaying launch image as i want to target new iPhoneX device as well. Problem that i am facing currently is, i am not able to see image on either device or simulator for launch image. I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin. I have tried adding images in Images.xcassets folder and

make WKWebview “real” fullscreen on iPhone X (remove safe area from WKWebView

橙三吉。 提交于 2019-11-30 13:52:19
问题 I'm trying to implement a "real" fullscreen in App WebView, meaning I want the webcontent to fully go under the notch no matter what. This is the current situation I am facing, when framing the WebView to the superviews bounds: The red border is the border of the webView (Also the size of the screen). Twitter has 100% height and width on the body. I understand that websites can't have 100% width in Safari and that its the default behaviour for the in App Browser to respect the safearea but

WKWebView page height issue on iPhone X

Deadly 提交于 2019-11-30 12:58:51
问题 I find that if I use WKWebView with viewport-fit=cover and body :{height:100%} the height of html body still can not reach the bottom of iPhone X and is equal to the height of safeArea, However, the background-color can cover the fullscreen. https://ue.qzone.qq.com/touch/proj-qzone-app/test.html I load this page in a fullscreen WKWebView to reproduce the problem. 回答1: I was able to fix the issue with (ObjC / Swift): if (@available(iOS 11.0, *)) { webView.scrollView

make WKWebview “real” fullscreen on iPhone X (remove safe area from WKWebView

半世苍凉 提交于 2019-11-30 11:56:22
I'm trying to implement a "real" fullscreen in App WebView, meaning I want the webcontent to fully go under the notch no matter what. This is the current situation I am facing, when framing the WebView to the superviews bounds: The red border is the border of the webView (Also the size of the screen). Twitter has 100% height and width on the body. I understand that websites can't have 100% width in Safari and that its the default behaviour for the in App Browser to respect the safearea but especially in my case, where the webpages are somewhat designed for the app, I need to use the full space

How to extend bottom view colour below the home indicator in iPhone X?

做~自己de王妃 提交于 2019-11-30 11:31:09
问题 Please check the attached image. The Viewcontroller's view's background colour is blue. This colour extends below the status bar and below the home indicator as you can see. There is a white view at the bottom which is a button. Here the white view is inside the safe layout guide. I want the same white colour to extend below the home indicator without adding any additional view only for iPhone-X. How to do this? 回答1: You need to set/attach bottom constraint of you white view with super view.