1,105,578 Community Members

Iphone Frames and Bounds

Member Avatar
Legomani
Newbie Poster
1 post since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

How to set views using frame for both Iphone and Ipad

Member Avatar
bambam2174
Newbie Poster
2 posts since Aug 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

You have to make two different UI layout for both. iPhone and iPad.
In your code you have to check the current device using a macro defined in UIKit
** UI_USER_INTERFACE_IDIOM()**
The macro will return an enumeration
UIUserInterfaceIdiomPhone or UIUserInterfaceIdiomPad.
Depending on you use the according view in your viewcontrollers

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: