Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- backgroundView.frame = CGRectMake(3, 3, 55, 55);
- if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
- backgroundView.frame = CGRectMake(3, 3, 55, 55);
- } else {
- backgroundView.frame = CGRectMake(/* iPad-friendly values here*/);
- }
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
- // iPad
- {
- }
- else
- // iPhone
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement