sehaswaran
sehaswaran

Reputation: 151

without auto layout ,how to use handle a single iOS storyboard file for 3.5 inch screen and 4 inch screen in my iPhone application

In my iphone application, I want to support from iOS 5 for iOS 3.5 Inch and 4 Inch Screen using a single iOS storyboard. Autolayout came from ios 6 onwards. I don't want to create a separate storyboard for iOS 3.5 Inch and 4 Inch Screen.

Upvotes: 0

Views: 481

Answers (3)

Harish Suthar
Harish Suthar

Reputation: 711

You need to set autosizing as shown in image then your button will appear in middle of the screen...

enter image description here

Upvotes: 1

Harish Suthar
Harish Suthar

Reputation: 711

For iPhone 3.5 Inch & 4 Inch support i think you must try Autosizing it will be also helpful.

Upvotes: 0

Rose
Rose

Reputation: 437

 if ([UIScreen mainScreen].bounds.size.height == 568)
 {

 }
 else
 {

  }

Upvotes: 0

Related Questions