Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. backgroundView.frame = CGRectMake(3, 3, 55, 55);
  2.  
  3. if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
  4. backgroundView.frame = CGRectMake(3, 3, 55, 55);
  5. } else {
  6. backgroundView.frame = CGRectMake(/* iPad-friendly values here*/);
  7. }
  8.  
  9. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
  10. // iPad
  11. {
  12.  
  13. }
  14. else
  15. // iPhone
  16. {
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement