I have a game which is adapted to iPhone 4 & iPhone 5 screens. Everything worked well on iOS 7, but on the iOS8 when I build the project for iPhone 5 with iOS 8 shows iphone4.xib's with black stripe, this means that it does not detect iPhone 5 screen. How to fix this?
How to detect iPhone 5 screen in iOS 8
182 Views Asked by Ptah At
2
There are 2 best solutions below
2
Anuj Rajput
On
What I understood is that this what you want to do
You need to do add a LaunchScreen.xib for your App to be compatible on iOS 8 If you are supporting iOS <8 you must add a iPhone 5 resolution (640x1136) sized black PNG file named [email protected]
This is how Apple recommends to add a LaunchScreen.xib https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW4
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in IOS8
- UIPopoverPresentationController not rendering properly
- UICollectionView cell height/scrollable content behaving strange/incorrect
- My application has the camera access permission by default.How can i turned it off and ask for permission?
- iOS coordinates for iPad and iPhone game using spritekit
- App crashes when I deselect an item in a UICollectionView
- Swift - Issue trying to access to Singleton object
- how to hide the section title when clicked search bar using ios 8 UISearchController?
- poptorootviewcontroller and instruct rootviewcontroller to perform some action
- Animation issue on iOS 7 but not on iOS 8
- Javascript function not getting called from HTML file
- Table View Cell After Upgrading Project from XCODE 5.x to 6.x
- Third party app iOS Storage usage statistics
- UI Local Notification - Background Reschedule
- Reposition legal label ( MKAttributionLabel )
- How can I animate an SKShapeNode in swift?
Related Questions in XIB
- Xcode Interface Builder loading XIB file show view with transparency
- Xib taking long time (>1s) to load. UIFont cache seems to blame
- UIVIew from XIB with Autolayout to UItableView Header
- On xib, dragging view will automatically go inside a bigger view
- Is it possible to create a prototype content UITableview in a xib file without using storyboard?
- Trying to load a nib from interface builder
- Xib based view is always full-screen and displayed on top of all other views
- Add a view defined in a xib file in a Window in the soryboard using Xcode & Swift
- Some time App take iphone XIB to load controller
- Xcode 7 beta made my apps storyboard files inaccessible
- prepare push segue from presentviewcontroller using xib ios7
- Putting .xib files in a resource bundle with images
- Initializing a xib view as a subview of another NSView
- Programmatically using constraints to center a UIIMageView
- Add tableView to a custom View
Related Questions in SCREEN-RESOLUTION
- How to make size of Window responsive for every type of screen resolution using Windows form
- Bad Swing UI scaling on high resolution (MS Surface)
- What is today's most popular screen resolution?
- Generate a Unity 2d Game Object Dynamically within the different devices screen bounds
- Layout folder name for tablet 21"
- How to resize image according from screen resolution on html css
- iOS - Converting an iPad app to a universal app - resolution issue
- iPhone 4S/6 fixing resolution by scale?
- How to make game fit any screen size
- ScreenToWorldPoint offset for different resolutions in Unity 2D
- Independent scrolling panels with no body scroll
- Developing responsive website, independent of device resolution
- Am I understanding Android density independence correctly?
- Why and how display zoom option changes iPhone screen size in points?
- Android, different layout for 10.1 and 9.7 inch displays
Related Questions in IPHONE-5
- iOS: test app for iPhone in iPad, screen size
- How to fix iPhone screen width using 4 inch storyboard using auto layout?
- iOS 8.x alternative to detect iPhone 5s, using [UIScreen mainScreen].bounds.size.height == 568.0
- Xcode 6.1 not showing launch image on ios 8.1
- How to detect iPhone 5 screen in iOS 8
- iPhone6 View is not displaying properly in iPhone5
- I can not install ipa on my device
- How to consolidating the translucency of the navigation bar between iPhone 5S and 5?
- IOS app crashes on iPhone 5
- Xcode quit unexpectedly while using the dsc_extractor.bundle plugin
- Custom Tableview getting crash in iPhone5(iOS7)
- The iPhone 5 has 3 mics. Can I change from which one I'm recording?
- setting image on UITabBar shows an extra line on Image
- Perform action as soon as camera opens ios
- UIImagePickerViewController camera preview black screen on iPhone 5 working fine on 4S
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I solved the problem.
Before that, I checked which device the app is running in by: [VSUtils isIPhone5Screen]. On iOS8 it doesn't work.
I have done so: