We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,301 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Iphone Frames and Bounds

How to set views using frame for both Iphone and Ipad

2
Contributors
1
Reply
1 Month
Discussion Span
1 Year Ago
Last Updated
2
Views
Legomani
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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

bambam2174
Newbie Poster
2 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0629 seconds using 2.67MB