Tuesday, 15 October 2013

iPhone ios7 comapatibility


To convert ios 6 compatible iphone app in ios 7 you have to follow this steps: 
a>In application you have to add 2 icons for existing app

1> icon_57*57
2> icon_114*114
for this you can refer this link: http://blog.manbolo.com/2013/08/15/new-metrics-for-ios-7-app-icons 

b>In ios 7 application your status bar is overlapped with view  because view origin 0 is considered from status bar position to ressemble this issue you have to make this changes:
  • in Info.plist file you have to apply this key value  <key>UIViewControllerBasedStatusBarAppearance</key><false/>
  •  move  view 20 pixel down you have to apply this code  in each view controller
if (IS_HIGHER_IOS7) {
for (UIView *v in self.view.subviews) {

CGRect oldFrame = v.frame;

v.frame = CGRectMake(oldFrame.origin.x, oldFrame.origin.y + 20.0f, oldFrame.size.width, oldFrame.size.height);

}
}

No comments:

Post a Comment