We have an iPod
app built with base SDK
as 5.1.
App has a tabBarController
with three tabs and each tab has a UIViewController
to load a different view.
The app works fine for iOS 6.1
and iOS 7
(3.5 inch display) simulator and device but when we run the app on
iOS 7
(4 inch display simulator) or device we are getting black bars at the top and bottom of the view screen in all three tabs.
If anyone can suggest reason for this or some feasible solution to this problem, it would be really helpful for us.
Thanks
This worked!
Pay attention to Step#5 and Step#6 below:
My problem was I accidentally deleted the value found here:
I added back LaunchScreen, and made sure there was a LaunchScreen.xib. Maybe it will help some others.
Mine was even easier to fix. I only typed
LaunchScreen
in theLaunch Screen File field
.Project file
inProject Navigator
General tab
"LaunchScreen"
in theLaunch Screen File field
Same problem. For ios 8.1 check whether the launch file is configured properly in the main configuration window. For ios 7.1 ensure that the launch image contains 640x1136 image.
This will clear the black bar problem on both ios when running in simulator.
Ive had the same problem - black bars at the top and bottom. It was simply solved by setting the drop down in "App Icons and Launch Images" to Main_iPhone:
App Icons and Launch Images Screen Shot
I was facing same problem . I just added launch image and it worked for me.
XCode->Click on Project File -> Select Target-> App Icons and Launch Images -> Add launch image source