Questions tagged [iphone-x]

Only use this tag for questions that specifically apply to the Apple iPhone X device. Use the [ios] tag for questions related to iOS. Hardware questions generally belonging to the iPhone X should be in the Ask Different community.

iPhone X is a mobile phone produced by Apple. Its key features include a 5.8 inch edge-to-edge "Super Retina Display", a dual-camera setup with extended AR compatibilities and the Face ID face recognition system.

Product page

641 questions
46
votes
6 answers

iPhoneX and iPhone 8 keyboard height are different

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…
William Hu
  • 15,423
  • 11
  • 100
  • 121
45
votes
6 answers

UICollectionView in landscape on iPhone X

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…
Wes Campaigne
  • 4,060
  • 3
  • 22
  • 17
42
votes
5 answers

What is the 'safe region' for iPhone X (in pixels) that factors the top notch and bottom bar?

I have read the Human Interface Guidelines for iPhone X and it doesn't specifically state the 'safe region' (area which caters for both top notch and bottom bar on the iPhone X). I would like to know the pixel dimensions of this region, including…
OnlyCodeMatters
  • 683
  • 1
  • 5
  • 15
36
votes
20 answers

How to correct Tab Bar height issue on iPhone X

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.
icekomo
  • 9,328
  • 7
  • 31
  • 59
31
votes
7 answers

Why page Push animation Tabbar moving up in the iPhone X

I build a app Demo, use hidesBottomBarWhenPushed hide Tabbar in Push Animation. But, When I click Jump Button Tabbar move up!? like this:
Tommy
  • 319
  • 3
  • 4
30
votes
6 answers

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

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…
j0h4nn3s
  • 2,016
  • 2
  • 20
  • 35
30
votes
2 answers

How to change the bottom edge color on the iPhone X programmatically?

It changes on their native keyboard/emoji board, depending which of the two are open. I thought it would change the color automatically based on UIInputViewController, however it is not occurring with custom keyboard extensions:
VDog
  • 1,083
  • 2
  • 13
  • 35
29
votes
2 answers

How to drag the iphoneX simulator?

When moving the iPhoneX simulator I have tried clicking and dragging at the top, bottom and both sides and even all the corners but sometimes it works and other times it does not. Why is this so random? Where is there best place to click seeing as…
AMAN77
  • 6,218
  • 9
  • 45
  • 60
29
votes
5 answers

iOS 11 & iPhone X: UINavigationBar's toolbar spacing incorrect when embedded in UITabBarController

I am experiencing an annoying problem testing the newest iOS 11 on the iPhone X simulator. I have an UITabBarController and inside each tab there is a UINavigationController, each UINavigationBar has defined also a bottom toolBar…
apascual
  • 2,970
  • 1
  • 20
  • 32
28
votes
16 answers

iPhone X how to handle View Controller inputAccessoryView?

I have a messaging app that has the typical UI design of a text field at the bottom of a full screen table view. I am setting that text field to be the view controller's inputAccessoryView and calling ViewController.becomeFirstResponder() in order…
LOP_Luke
  • 3,150
  • 3
  • 22
  • 25
27
votes
8 answers

How to Add iPhoneX Launch Image

Using Xcode Version 9.0 (9A235), I am trying to add a Launch Image for iPhoneX at the requested 2436px × 1125px (landscape). Currently I am using a Storyboard and it looks like this: 'launchimage' is an Image View linked to an Image Set: And the…
Christian Cerri
  • 1,233
  • 2
  • 15
  • 19
26
votes
2 answers

Hide home indicator in xib file

I'm creating a new View and decided to use a xib file so that I can design it in Interface Builder. I set the Size to Freeform, and resized it in the Size inspector. However no matter what size I make the view, it still shows the home button…
Senseful
  • 86,719
  • 67
  • 308
  • 465
26
votes
10 answers

View is tethered to the safe area margin top rather than superview, how would I tether to the superview top?

I don't know why the safe area covered my view on the iPhone X, simulator, but in xCode's view debug it seems ok. Is there any option to hide the safe area view or remove it? thanks in advance! Via the view debug I can see no view or nothing covered…
Bi Brian
  • 269
  • 1
  • 3
  • 3
26
votes
6 answers

iPhone X keyboard appear showing extra space

I have created a chat UI in which I have added a constraint for the tableView to the bottom of the screen. I am changing the constraint value by adding the height of the keyboard which is working fine in all the devices except iPhone X. UI when key…
Amit
  • 4,837
  • 5
  • 31
  • 46
26
votes
3 answers

iPhone X - Hidden status bar pushes Navigation Bar upwards

I'm testing iPhone X behavior using the Xcode simulator. For some odd reason, if I'm hiding the Status Bar the Navigation Bar pushed upwards causing the title to completely disappear and cutting the left and right buttons. This is happening only on…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
1
2
3
42 43