Search code examples
iphoneiosios7uipickerview

Tutorial for upgrading existing iPhone App to iOS 7.0


I am facing issue in making UIPickerView compatible with iOS 7.0.

App is working fine till iOS6.0 But pickerView and some buttons are not visible at all in iOS 7.0.

IF anyone can guide me steps that i should follow to convert my existing apps to iOS7.0.

Thanking in advance


Solution

  • float systemVersion= [[[UIDevice currentDevice] systemVersion] floatValue];
    
    if(systemVersion >= 7.0f)
    {
      self.edgesForExtendedLayout=UIRectEdgeNone;   
    }
    

    Use this code in your viewDidLoad() method.