iphone-x

App not occupying complete screen in iphone X simulator in Xcode 9 [duplicate]

瘦欲@ 提交于 2020-01-24 16:58:25
问题 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 . With the release of Xcode 9, we are able to test UI of our app on iPhone X simulator. When I ran my app on iPhone X simulator, it does not occupy complete screen. There is space left on the top and bottom of the Apps View. Can anyone please tell how to remove that space, I am already using auto layouts in my app. I am attaching the screenshot of my app.

Apptentive Message cell color change

半腔热情 提交于 2020-01-15 10:15:31
问题 Hi I tried to customize apptentive ApptentiveMessageCenterReplyCell , ApptentiveMessageCenterContextMessageCell , ApptentiveMessageCenterMessageCell color since it is being used as cell in Storyboard. On color change i want to update its background color for that i could not access it from styleSheet using SDK. iOS SDK version: apptentive-ios 4.0.7 //Example code ApptentiveStyleSheet *style = [[Apptentive sharedConnection]styleSheet]; style.backgroundColor = self.isLightTheme ? [UIColor

Apptentive Message cell color change

泪湿孤枕 提交于 2020-01-15 10:12:10
问题 Hi I tried to customize apptentive ApptentiveMessageCenterReplyCell , ApptentiveMessageCenterContextMessageCell , ApptentiveMessageCenterMessageCell color since it is being used as cell in Storyboard. On color change i want to update its background color for that i could not access it from styleSheet using SDK. iOS SDK version: apptentive-ios 4.0.7 //Example code ApptentiveStyleSheet *style = [[Apptentive sharedConnection]styleSheet]; style.backgroundColor = self.isLightTheme ? [UIColor

Is it possible to change color of bottom horizontal line of iPhone X series within app?

大憨熊 提交于 2020-01-15 10:06:37
问题 is it possible to change color of bottom horizontal line of iPhone X series within app(inside app only)? my client is asking to change color of this line, and i am not able to find any related topic or solution. Thanks. 回答1: No, I don't think it is. That's drawn by the system, and is not part of your app. Apple does not let apps change things outside of that app's "sandbox". Edit: I found a long article on the subject online: https://medium.freecodecamp.org/reverse-engineering-the-iphone-x

Scale background image to iPhone 10

半腔热情 提交于 2020-01-06 03:58:12
问题 I'm using Swift 4, XCode 9. I have an iOS application which has a background image which was set using storyboard. The actual storyboard file is viewed from the frame of reference of an iPhone SE. However, I've never had a problem with the image scaling to bigger phone sizes, except now for iPhone 10. It won't fill the whole screen. How can I fix this? The background is displayed through an image view. I've tried changing the height of the image view both via story board and programmatically

Cocos2d-iPhone and iPhone X resolution

柔情痞子 提交于 2020-01-05 04:21:07
问题 Can you believe we are still using Cocos2d-iPhone? Does anyone have a fix for making it work with the newest iPad's and iPhone X's? Our mode is landscape. 回答1: If cocos2d version 1.0 - 2.1 then update it to Cocos2d 2.2 Add iPhoneX splash screen in Images.xcassets In CCConfiguration.m file updated below function. In this we are handling contentScaleFactor 3. -(NSInteger) runningDevice { NSInteger ret=-1; #ifdef __CC_PLATFORM_IOS if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { ret =

Bottom Margin in iPhone X using storyboard

大憨熊 提交于 2020-01-01 05:33:14
问题 Ok I have this case, There is this screen I designed for iphone 8 As you can see here there is 8px green view that I pinned to the bottom of the superview by making a constrain of 0px between this view and top of bottom layout guide. and it works fine on all phone EXCEPT for the new iPhone X where this happens: and thats not my intended behaviour. I want to to be as the other iPhones, pinned to the bottom with 0 margin. Is there is a solution for that using the storyboard? Please post

How to get a black statusbar on iPhone X on iOS 11

老子叫甜甜 提交于 2020-01-01 04:25:06
问题 By default the statusbar on an iPhone X looks like this: But I would like to achieve this: I tried setting the preferredStatusBarStyle to lightContent but it only worked after setting the background behind the statusbar to black. To fix the rounded corners I ended up adding another subview with rounded corners. class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .black let roundedView = UIView( frame: CGRect( x: 0, y: UIApplication

iPhone-X - How to force user to swipe twice home indicator to go home-screen

╄→гoц情女王★ 提交于 2019-12-31 22:20:52
问题 I'm using the code below to hide the home indicator on iPhone X, which is working fine in the emulator. -(BOOL)prefersHomeIndicatorAutoHidden { return YES; } But even though it's hidden, I am still able to swipe up from the bottom and my game goes to the home screen. I have seen a few games where the user has to swipe up once to bring up the home indicator and swipe up again to go to the home screen. So, how can I force the user to swipe the home indicator twice to go to the home screen in

iPhone-X - How to force user to swipe twice home indicator to go home-screen

五迷三道 提交于 2019-12-31 22:20:06
问题 I'm using the code below to hide the home indicator on iPhone X, which is working fine in the emulator. -(BOOL)prefersHomeIndicatorAutoHidden { return YES; } But even though it's hidden, I am still able to swipe up from the bottom and my game goes to the home screen. I have seen a few games where the user has to swipe up once to bring up the home indicator and swipe up again to go to the home screen. So, how can I force the user to swipe the home indicator twice to go to the home screen in