Hi i am new to ios development...
I have created on project that supports for only landscape only.For that i used like this
But when i am going to print view sizes
NSLog(@"%f--%f",self.view.frame.size.width,self.view.frame.size.height);
in log it giving
768.000000--1024.000000
instead of
1024.000000--768.000000
And also i added a code
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
BOOL res=((interfaceOrientation == UIInterfaceOrientationLandscapeLeft)|| (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
return res;
}
I have no idea how to solve this problem.Please help me on this