I have to set an UIView
in fullscreen Programatically for all devices like: iPhone 3GS, 4, 4S, 5, 5S, 5C.
I googled so many times and get a answer but its not coming properly. 20 pixel is less from bottom part. I share my screenshot please see and let me know what i have to do.
My Code is :
UIView *myview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] applicationFrame].size.width, [[UIScreen mainScreen] applicationFrame].size.height)];
[myview setBackgroundColor:[UIColor grayColor]];
[self.view addSubview: myview];
See properly from bottom its 20 pixel is white. How can i manage that. ?