I was made the project for iPhone which contain UIImage. Now I have to implement same project for iPad . So what is size of image which can i used. also tell me if there is any another code for for page size as it was in iPhone like CGRect like that. also provide some code to adjust image from landscape to portrait.
Thanks
Resolution of iPad screen : 1024*768
To get full screen frame : CGRect mainFrame = [[UIScreen mainScreen] applicationFrame];
To check for orientation look at thoose functions :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.