When I run the app in iOS 6 ,everything works perfectly fine but when I run on iOS 7 the status bar is visible as per the iOS 7 standards. To get back the iOS6 look and feel in iOS 7, I use the following code :
CGRect frame = self.view.frame;
frame.origin.y = 20;
if (self.view.frame.size.height == 1024 ||
self.view.frame.size.height == 768) //643
{
frame.size.height -= 20;
}
self.view.frame = frame;
Using this code the UI looks fine on iOS 7. But then one more issue comes. I have few UIButtons at the bottom bar of the screen. Using the above code makes these button partially tappable in iOS 7. There is no button tappability problem in iOS6. Has anyone come across such a situation. If yes then please let me know how to resolve this.