Monday, 28 October 2013

Picker and TableView problem in ios 7.0

If you are convertig your application in ios 7.0 then you will see that your picker will overlap with your background view as


if you want to avoid this UI conflict you have to apply this line.

optionPicker.backgroundColor = [UIColor whiteColor];

In ios 7.0 tableview cell has white color by default you can change it using this line.

[cell setBackgroundColor:[UIColor clearColor]];



Wednesday, 16 October 2013

Ipad ios 7 Comaptiblity

In my one iPad application i have to make it compatible for the ios 7 which is already exists for ios 6.0.For that i have to do below changes.
1>I have to add below two icon files for ios 7.0
-icon files 
ipad non ratina (76*76)
ipad ratina (152*152)
2> I used custom navigation bar for my app.One issue  found in ios 7.0 that statsbar is overlapped with navigation bar 
I implement this code in appDelegate
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
            [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleDefault];
            for (UIView *v in self.navController.view.subviews) {
               CGRect oldFrame = v.frame;
                v.frame = CGRectMake(oldFrame.origin.x, oldFrame.origin.y + 20.0f, oldFrame.size.width, oldFrame.size.height);
            }
            [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleDefault];
        }
-In all view controller to transfer all views 20 pixel down from top implement this code
 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);
        }
    }

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);

}
}