How to remove extra padding from top, left, bottom or right in Grouped UITableView

Hi All,

There is some flow with Grouped Table view with iOS7 like adding extra padding space. Specially this problem come with iPad.

iOS Simulator Screen shot Jun 27, 2014, 2.24.54 PM

As you can see in above image with marked box with extra padding in group table.

By using below code we can remove extra padding as follows :-

tableObject.contentInset = UIEdgeInsetsMake(-30, 0, -30, 0);

UIEdgeInsetsMake( from top, from left, from bottom, from right) is use to fill padding from given side in table(UITableView). like i am filling extra padding from top and bottom in my table.

After using above code i have found my table like that :-

iOS Simulator Screen shot Jun 27, 2014, 2.28.59 PM

I hope it will help to get rid of extra padding space in Grouped Table specially with iOS7.

Thank you.

4,852 total views, 2 views today

Share this OnShare on FacebookTweet about this on TwitterShare on LinkedInShare on Google+

Leave a Reply