Reputation: 105
Here i try this swift code for to make support all versions and devices but it not works otherwise it shown black display on simulator.
var systemVersion = UIDevice.currentDevice().systemVersion;
if(ver >= 7)
{
NSLog("Version number above 6");
let screenWidth = self.view.bounds
let screenHeight = self.view.bounds
if ((screenSize.width == 320.00) && (screenSize.height == 480.00))
//Modify for 5 Screen Size
if((screenSize.width == 320.00) && (screenSize.height == 568.00))
{
NSLog("6+ Device");
self.view = UIView(frame: CGRectMake(0, 503, 320, 50)) // To allign bottom buttons
}
Upvotes: 0
Views: 705