How to set views using frame for both Iphone and Ipad

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.