I am setting my iphone app screen frames to support iphone 5 , i have set the auto resizing mask and also i tried by setting the frame programmatically using the following code in
loadview
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
CGSize result = [[UIScreen mainScreen] bounds].size;
if(result.height == 480)
{
// iPhone Classic
}
if(result.height > 480)
{
// iPhone 5
CGRect mainFrame = CGRectMake(0, 0, 320, 568);
self.view.frame = mainFrame;
}
}
but it didnt work ,
can any one tell me how do i set the frame , thanx in advance