iphone-6

How to disable iPhone 6 native resolution?

ⅰ亾dé卋堺 提交于 2019-11-27 14:26:18
I have several games made with Cocos2d-iphone. All of them are old projects created with Xcode 4 or 5. All games scale fine on the new iPhone 6 and 6 Plus except one that seems to avoid the scaling mode and is running on native iPhone 6/6 Plus resolution. The project does not contain Launch images with the resolutions that seem to disable the scaling mode as explained here Is there anything else that unlocks the native resolutions? I want the game to run in scaling mode for now until the HD assets are ready for the new resolutions. I've made a new empty project that does not have any assets

Autolayout: origin and size should change according to width and height factor

半世苍凉 提交于 2019-11-27 05:52:44
问题 Here is a scenario what I needed. I have put a UIButton on IB (size iPhone4 inch) whose initial frame on IB is x:100,y:100,w:100,h:100 . I want the origins and height should change according to device size. for example the width and height of iPhone6 is 375X667, hence the width factor (375/320=1.1718) and height factor (667/568=1.1742) . In this scene I want to change my buttons origin X and width with multiply by width factor (1.1718) and origin Y and height with multiply by height factor (1

Supporting iPhone 6 and iPhone 6+ with different launch/splash screen image for iPad Portrait and Landscape orientations

旧时模样 提交于 2019-11-27 00:57:41
What I understood from the available documentation and my testing is that All existing Apps on iPhone 6 and 6 Plus run in compatibility mode, which means the APIs (like [UIScreen mainScreen].bounds) will return 320x568 (iPhone 5/5s) still in new iPhones (6/6 Plus) and all UI is scaled to the correct resolution by iOS. To support iPhone 6/6Plus we need to create xib for Launch Screen (File->New->File->UserInterace->Launch Screen) and set the nib file as "Launch Screen File". We can set different images for launch screen inside Launch screen nib file based on avaialble size classes. [Basically

FBSOpenApplicationErrorDomain code =4 error

梦想与她 提交于 2019-11-26 22:31:56
问题 When I'm trying to run iOS application in Xcode 6 in iPhone 6 simulator, I'm getting error Unable to run app in Simulator . And error code is: An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) Can any one suggest how to resolve it? 回答1: This worked for me: iOS Simulator -> Reset Contents and Settings... -> Reset referenced from Qiita: Unable to run app in Simulator エラーの対応方法. 回答2: Just closing the iOS Simulator worked for me. There is not always the need

How to specify size for iPhone 6/7 customised edge-to-edge image?

两盒软妹~` 提交于 2019-11-26 21:23:16
Say I want a bundled image to take up all available screen width in an iPhone app - for example a banner. I'd create my_banner.png with width 320px , my_banner@2x.png with width 640px and my_banner@3x.png for iPhone 6 plus with width 1242px . But the resolution of iPhone 6 is 750×1334 pixels. Still it shares the @2x suffix with iPhone 4 and 5 that have 640px width. What's the recommended way or a good way to specify an image file that has been optimised for the 750px width of iPhone 6 ? Seems like it cannot be done in an asset catalog ? Should it be done programatically? Is there some other

Black bars on launch screen on iPhone5 (and iPhone6)

坚强是说给别人听的谎言 提交于 2019-11-26 12:27:36
When iPhone 5 first came out we had to go through the silliness of adding a Default-568h@2x.png to the project to get the app to use the full height of the iPhone 5. In late 2014 are we still doing that? We have asset catalogs and the LaunchScreen.xib file. Do we still need to add the Default-568h@2x.png file? If so, where does it go now? I've tried a few different things and I can't get rid of the black bars in a new app created with Xcode 6 GM. As stated by rmaddy in the comments, if you are supporting iOS < 8, you still need to do this: General / App Icons and Launch Images Launch Image

How do I create launch images for iPhone 6 / 6 Plus Landscape Only Apps?

旧城冷巷雨未停 提交于 2019-11-26 11:37:21
I've got an existing landscape only app that I'm trying to add iPhone 6 / iPhone 6 Plus support for. When I was supporting iOS 6 / 7 I simply used the default-named launch portrait images with a landscape image rotated into portrait (ie. for 4" screens I created a landscape 1136x640 and then rotated to create a 640×1136 launch image.) I'm trying to get something working for iOS 8 and iPhone 6 / 6+ and have not come up with something that works yet. Here are some things that I have tried: Follow the pattern for 4" screen launch image convention. I created Default-667h@2x.png and Default-736h@3x

Supporting iPhone 6 and iPhone 6+ with different launch/splash screen image for iPad Portrait and Landscape orientations

守給你的承諾、 提交于 2019-11-26 09:30:38
问题 What I understood from the available documentation and my testing is that All existing Apps on iPhone 6 and 6 Plus run in compatibility mode, which means the APIs (like [UIScreen mainScreen].bounds) will return 320x568 (iPhone 5/5s) still in new iPhones (6/6 Plus) and all UI is scaled to the correct resolution by iOS. To support iPhone 6/6Plus we need to create xib for Launch Screen (File->New->File->UserInterace->Launch Screen) and set the nib file as \"Launch Screen File\". We can set

How to handle image scale on all the available iPhone resolutions?

一笑奈何 提交于 2019-11-26 08:40:38
问题 What sizes would be the best to use for images: background.png, background@2x.png and background@3x.png if we want to use this image for example to cover the full width and half height of the screen on all resolutions for iPhone portrait app? This is what we have now: Device Points Pixels Scale Physical Pixels Physical PPI Size iPhone X 812x375 2436x1125 3x 2436x1125 458 5.8\" iPhone 6 Plus 736x414 2208x1242 3x 1920x1080 401 5.5\" iPhone 6 667x375 1334x750 2x 1334x750 326 4.7\" iPhone 5

How to specify size for iPhone 6/7 customised edge-to-edge image?

偶尔善良 提交于 2019-11-26 07:55:03
问题 Say I want a bundled image to take up all available screen width in an iPhone app - for example a banner. I\'d create my_banner.png with width 320px , my_banner@2x.png with width 640px and my_banner@3x.png for iPhone 6 plus with width 1242px . But the resolution of iPhone 6 is 750×1334 pixels. Still it shares the @2x suffix with iPhone 4 and 5 that have 640px width. What\'s the recommended way or a good way to specify an image file that has been optimised for the 750px width of iPhone 6 ?