Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • UITableView extra spacing(padding) on the top in IOS7

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 648
    Comment on it

    When using xcode4.5 or 4.6(i.e ios6) UITableView added to xib files appears as it is. But when it comes to IOS7(i.e When you are using xcode5) along with adding the UITableView to xib you also need to add a small code which will remove that padding.

    carTable.contentInset = UIEdgeInsetsMake(-45, 0, 0, 0);

    Note: This is only for IOS7. So you need to give a condition or else the UITableView wont work IOS6.

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: