iphone-x

iPhone X - How are we supposed to handle the space above table section headers? It's showing through the content

假如想象 提交于 2019-12-22 09:39:52
问题 I have a tableview with multiple sections and section headers for each section. As you know, section header moves with the tableview. So if there are more than one sections, the current section's header sticks to the top of the tableview while the content of that section scrolls under the header. I am trying to figure out on how it's supposed to get adapted for the iPhone X as the space above the header is showing through the content as you notice in this screenshot. I looked at the Apple

How to allow for iOS status bar and iPhone X notch in Xamarin.Forms

走远了吗. 提交于 2019-12-21 05:39:31
问题 I'm fairly new to this, so sorry if this is a dumb question. How do I get my Xamarin.Forms app to start below the status bar or the notch when applicable? I've tried using a NavigationPage , but then it started wear below the top of the screen. I've also seen a few other solutions, but I can't make it work. Can anyone help? Thanks! 回答1: use UseSafeArea using Xamarin.Forms.PlatformConfiguration.iOSSpecific; using Xamarin.Forms; namespace iPhoneX { public partial class ItemsPage : ContentPage {

Mapping image onto 3D face mesh

半腔热情 提交于 2019-12-20 10:25:52
问题 I am using the iPhone X and ARFaceKit to capture the user's face. The goal is to texture the face mesh with the user's image. I'm only looking at a single frame (an ARFrame ) from the AR session. From ARFaceGeometry , I have a set of vertices that describe the face. I make a jpeg representation of the current frame's capturedImage . I then want to find the texture coordinates that map the created jpeg onto the mesh vertices. I want to: 1. map the vertices from model space to world space; 2.

Detect fast double power button press

こ雲淡風輕ζ 提交于 2019-12-19 11:44:36
问题 Is it possible to detect if the user pressed the power button two times fast? Apple use the way to confirm an Appstore purchase on the new iPhone X with Face-ID. Is there any API available? Want to use it in an similar case for authenticate via Face-ID. 回答1: No. The system itself controls response to the side (sleep/wake/power) button. iOS accepts a double-tap on side button to prompt for Face ID authentication only during an Apple-mediated financial transaction — that is, to make a purchase

iPhone X full screen issue [duplicate]

本秂侑毒 提交于 2019-12-18 15:16:10
问题 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 . Today I've installed Xcode 9 and build my app for iPhone x . but the upper and bottom area showing black like the scenarios we met couple of years ago for iPhone 5 when screen switched to 3.5 to 4. How simply we can fix this problem? 回答1: You should use a safe area . For apps with custom layouts, supporting iPhone X should also be relatively easy,

iPhoneX and iPhone 8 keyboard height are different

陌路散爱 提交于 2019-12-18 10:47:15
问题 I use below code to get keyboard height. Then use this height to calculate the frame of an UIView to make sure this UIView just on the top of the keyboard. But in iPhoneX simulator the output is 333 and the iPhone 8 simulator is 258 . ISSUE : If use rect.height as the keyboard height for iPhone 8 simulator then the layout is correct. For iPhone X there's a gap between the UIView and keyboard. Which means 333 is higher than the real keyboard height in iPhone X. What's the reason of the height

Safe area layout guides in xib files - iOS 10

末鹿安然 提交于 2019-12-18 10:08:33
问题 I started adapting my app for iPhone X and found an issue in Interface Builder. The safe area layout guides are supposed to be backwards compatible, according to official Apple videos. I found that it works just fine in storyboards. But in my XIB files, the safe area layout guides are not respected in iOS 10. They work fine for the new OS version, but the iOS 10 devices seem to simply assume the safe area distance as zero (ignoring the status bar size). Am I missing any required configuration

Raw Depth map SDK for IPhone X

末鹿安然 提交于 2019-12-18 05:58:10
问题 I did some search and found various examples, documentation on iPhone X Face ID and how it can be used for various stuff like authentication, animated emojis. Wanted to check if there is an API/SDK to get the raw depth map from iPhone X sensor to the app? From my understanding the depth calculation is done based on the projected pattern. This can be used to get depth profile of any object in front of the sensor. (Might be dependent on the texture of the object.) 回答1: You'll need at least the

How to correct Tab Bar height issue on iPhone X

我与影子孤独终老i 提交于 2019-12-17 22:35:59
问题 I'm having an issue with my app when testing for iPhone X. I'm not sure how to adjust this issue, as well as not make it an issue for non iPhone X sizes. This only seems to be an issue on the iPhone X simulator. 回答1: "File inspector" from right of Xcode storyboard, enable Safe Area guide layout to support your app in iPhone This post describes really good. 回答2: On iOS 12.1 I've solved this issue by overriding safeAreaInsets in the UITabBar subclass: class TabBar: UITabBar { private var

How can I detect if my device is an iPhoneX in Swift 4? [duplicate]

百般思念 提交于 2019-12-17 20:11:41
问题 This question already has answers here : Detect if the device is iPhone X (36 answers) Closed 2 years ago . I am sure there is a better, more proper way to do this. But right now I am using UIScreen.main.bounds to detect if I am dealing with an iPhone X (812 tall) or not. This specific app is landscape only, btw. So this is what I have in this function where I am crating slides for a slide view: func setupSlideViews(slideView: [SlideView]) { let screenSize = UIScreen.main.bounds var frame: