iphone-6-plus

Simulator running in scaling mode for iPhone 6 Plus?

前提是你 提交于 2019-12-18 19:06:27
问题 My app starts and runs on the new iPhone 6 Plus (or iPhone 6) in the simulator, but elements that I know are supposed to be small on the big screen (i.e. hard coded CGRect s) are large, as if the whole app had just been scaled up for the larger screen. How can I get out of scaling mode in the simulator? 回答1: It looks like setting a launch screen file in the "App Icons and Launch Images" section of your project settings, or adding iOS 8 images to your launch image catalog, will enable "native"

UIModalPresentationPopover for iPhone 6 Plus in landscape doesn't display popover

一个人想着一个人 提交于 2019-12-18 12:45:40
问题 I want to always present a ViewController in a popover on all devices and all orientations. I tried to accomplish this by adopting the UIPopoverPresentationControllerDelegate and setting the sourceView and sourceRect . This works very well for all devices and orientations, except the iPhone 6 Plus in landscape. In that case the view controller slides up from the bottom of the screen in a form sheet. How can I prevent that so that it will always appear in a popover? override func

iPhone 6 (Plus) screen size

情到浓时终转凉″ 提交于 2019-12-17 16:06:09
问题 There were many articles written and questions asked about iPhone 6 and iPhone 6 Plus screen sizes. This article provides a great explanation. However, I am confused when testing my app in the simulator. I have the following code in AppDelegate . - (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions { UIScreen *screen = [UIScreen mainScreen]; NSLog(@"Screen width %.0f px, height %.0f px, scale %.1fx", (double) screen.bounds.size

Still not optimized for iPhone 6 and iPhone 6 Plus

蓝咒 提交于 2019-12-17 15:34:51
问题 I have an app that just went live and it's still not saying "Optimized for iPhone 6 and iPhone 6 Plus" I added launch screens and app icons in required resolutions. Adjusted all inner screen to fit with the new iPhone screens. Added screenshots for 4.7 and 5.5 inches devices on iTunes Connect. What am I missing now? 回答1: After few additional adjustments made, I had re-submitted the app few days ago. Now it's live and optimized for iPhone 6 and iPhone 6 Plus! Here are the steps I made: Added

How do I specify fullscreen background images in Xcode so redundant images aren't installed to devices?

故事扮演 提交于 2019-12-13 05:16:57
问题 I am developing an ObjC iPhone app in Xcode 6, targeting iOS 7 as the minimum version. I have fullscreen background images for the main UIViewController instance in my app. The app uses four visual themes, and each background now comes in three sizes. To support 4", 4.7", and 5.5" screens, the image widths are 640, 750, and 1242 pixels respectively. In my project, I choose a specific image based on the result of [[UIScreen mainScreen] nativeBounds] to get the background image corresponding to

UIImageView height on iPhone 6 and iPhone 6 Plus Zoomed display mode

好久不见. 提交于 2019-12-13 05:14:22
问题 I have a UIImageView *backgroundImageView in my ViewController and call in my viewDidLoad [self.backgroundImageView sizeToFit] I found that on the iPhone 6 the height changes from 667 (Normal display) to 558 (Zoomed display) However on the iPhone 6 Plus the height remains the same at 736 for both. Is this expected? 回答1: Try it. Here Given code based on your current screen height. float img = frame.size.height / frame.size.width; frame.size.width = [[UIScreen mainScreen] bounds].size.width;

How do I handle iPhone 6S Plus's font size?

早过忘川 提交于 2019-12-10 03:54:49
问题 iPhone 6S Plus's screen is very big compared to other screen sizes. I can't seem to find a good way to handle the font size of a label without adjusting the size programmatically. How can I adjust the font size of a label so that it looks smaller on an iPhone 5 and bigger on an iPhone 6 Plus? 回答1: Don't change font sizes for the iPhone 6 or iPhone 6+. People buy these phones to see more content. The 6+ displays things slightly bigger than the other phones anyway (yes, it has bigger pixels,

Allow landscape for iPhone 6 Plus but not other iPhones

℡╲_俬逩灬. 提交于 2019-12-09 17:39:05
问题 In my universal app I currently override supportedInterfaceOrientations in the window's root view controller to define the orientations that are allowed. Up until now the decision was based on the device's user interface idiom: - (NSUInteger) supportedInterfaceOrientations { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown); else return UIInterfaceOrientationMaskAll; } Now

UISplitViewController - prevent splitting in landscape on iPhone 6 plus

匆匆过客 提交于 2019-12-07 10:55:52
问题 I am using a UISplitViewController in my app. This works just fine on iPad where primary and secondary are always visible, and it works just fine on most iPhones where it acts like a UINavigationController. On iPhone 6+ and 6S+ the split view acts like an iPhone in portrait and like an iPad in landscape. This splitting in landscape is causing me problems and I'd like to avoid it. Is there any way to prevent the UISplitViewController from showing primary and secondary controllers in iPhone 6+

Enable iphone 6 resolution not enabling iphone 6 plus

不羁岁月 提交于 2019-12-07 04:24:55
问题 I am trying to support iPhone 6 resolution without supporting iphone 6 plus yet. What I tried already is to add launch image for iphone 6 - Image.xcassets called Retina HD 4.7. Unfortunatelly simulator for 6 plus is reporting 2208x1242 screen size (already multiplied by 3). So 6 plus is supported with just 6 launch image. I am wondering if its just a simulator bug or the same behavior is on actual iphone 6 plus device - I do not have access to such device yet. Funny thing: when I added just