iphone-6-plus

UI doesn't fill in iPhone 6 plus

十年热恋 提交于 2020-01-13 14:55:15
问题 I'm working on an iOS app and realize the ui is not auto stretch to fit the screen when it's running in iPhone 6 plus. So the UI is on the right left, and there are a lot of white space in the bottom and right. If I set the width of a view to beyond 320 (ex. 400), then the view be wider than 320. How could I make my views auto stretch to fill the screen? I have a few other apps, and they works perfectly fine in iPhone 6 plus. I couldn't figure out what make this app's ui not auto stretching.

IOS 8 asset catalog image sizes confusing

半世苍凉 提交于 2020-01-03 04:54:07
问题 Say I want to make a button that takes up half the width of the iPhone screen (portrait) at @1x. This would be 160 pixels, @2x this would be 320 pixels. Now with iPhone 6 and iPhone 6 plus it gets confusing. The iPhone 6 has 750 pixels width and uses @2x but the asset catalog has only one box for adding @2x images, so do I make my image 320 pixels or 375 pixels? Also, the iPhone 6 Plus has width of 1080 pixels or 1242 pixels (any idea which one?), but my standard image of 160 pixels

iOS 8 number conversion/formatting error? (cannot reproduce)

余生长醉 提交于 2020-01-02 05:02:07
问题 The following method takes input from a UITextField and formats it for display. This code has worked flawlessly for years, but a problem was just reported on the iPhone 6 Plus using iOS 8.1. It happens every time for the user but I have not been able to reproduce it. I believe it has to do with NSNumber/NSDecimalNumber conversions and formatting on iOS 8, perhaps for a 64-bit app/device. The keyboard used for input is a number pad, so the only text that can be entered into the textfield are

iOS 8 AutoLayout scrollview scrolls horizontally on iPhone 6 plus

大兔子大兔子 提交于 2020-01-01 11:39:14
问题 I do have an App for iOS and while adapting all the UI to auto layout an size classes to support the new iPhone 6 and iPhone 6 plus i faced a weird issue... al my scrolls view work fine in iPhone 4s, 5, 5s and 6... in iPhone 6 plus they are not scrolling only vertically but also horizontally... like if the content size of the scroll view where a couple of pixel wider than the view itself (so it move horizontally of a couple of pixel and then it bounce). I do not understand why is this

How to detect iPhone 6 & 6 Plus View Mode Programmatically [duplicate]

一笑奈何 提交于 2019-12-30 06:04:33
问题 This question already has answers here : How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode? (5 answers) Closed 3 years ago . Is there any way to identify View Mode( In setting > Display & Brightness ) programmatically ? Many apps design are behaving differently in Standard Mode and Zoomed Mode. Please refer image : Any Help would be appreciated. :) 回答1: You can use either [UIScreen mainScreen].nativeScale witch will gives you 2.6f if normal, and 2.8f if zoomed on

How to detect iPhone 6 & 6 Plus View Mode Programmatically [duplicate]

放肆的年华 提交于 2019-12-30 06:03:25
问题 This question already has answers here : How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode? (5 answers) Closed 3 years ago . Is there any way to identify View Mode( In setting > Display & Brightness ) programmatically ? Many apps design are behaving differently in Standard Mode and Zoomed Mode. Please refer image : Any Help would be appreciated. :) 回答1: You can use either [UIScreen mainScreen].nativeScale witch will gives you 2.6f if normal, and 2.8f if zoomed on

How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode?

大兔子大兔子 提交于 2019-12-28 01:55:28
问题 How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode? Is this possible? I've tried [UIScreen mainScreen].scale and it reports 3.0 in both cases. 回答1: The following code may be used to get bounds , coordinateSpace , nativeScale and scale , i.e. on an iPhone 6 Plus the nativeScale is 2.608 and when the device in run in Zoomed Mode it is 2.88 (note that it is different in the simulator): UIScreen *mainScreen = [UIScreen mainScreen]; NSLog(@"Screen bounds: %@, Screen

Get variable height for a UIButton for iPhones 5/6/6+

泄露秘密 提交于 2019-12-24 02:18:15
问题 For my 1) portrait only 2) deployment target iOS7/iOS8 app, I have in my design UIButtons which have variable heights, for iPhone 5, iPhone 6 and iPhone 6+. I am trying to use auto layout for this. (Not using size classes though). Using auto layout how can I specify variable height for UIButton for these 3 screen sizes. The buttons look fine on iPhones 5* models, but thinner on iphone 6/6+. Now in auto layout I can say height >= or = or <= say 55), but how do I specify 44 for iphone5, 55 for

App thinning without @3x images and when some images are JPGs

巧了我就是萌 提交于 2019-12-21 18:04:09
问题 For an upcoming update to one of my apps I have packed all the image resources into Asset Catalogs. However, at the moment I do not have @3x version for most of my images. I have checked with the simulator and on iPhone 6 Plus @2x versions are used. I don't mind this behaviour for two reasons: The result is good enough for images which I am using Only 50% of my users are using iOS 9. If I add @3x images the size of my app will skyrocket for those on older OS Although images load correctly in

Correct Size for apple-touch-startup-image in iPhone 6, iPhone 6 Plus?

心不动则不痛 提交于 2019-12-20 01:07:41
问题 Wanting to see if my math and media queries are correct here, as I cannot find this info anywhere. <!-- iOS 8 iPhone 6 (portrait) --> <link rel="apple-touch-startup-image" href="/apple-touch-startup-image-750×1294.png" media="(device-width: 375px) and (device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)"> <!-- iOS 8 iPhone 6 (landscape) --> <link rel="apple-touch-startup-image" href="/apple-touch-startup-image-710x1334.png" media="(device-width: 375px) and