iOS 15 beta 2 UItableviewcell spacing issue

We are using custom UITableViewCell in UITableview. While we testing our application on iOS15 beta 2 version, we observe extra space in between 2 UITableViewCells. Same UI is working fine on iOS 14 and below.

Do we need to make any extra changes to handle this for iOS 15 or it will be fixed in next iOS 15 beta release?

Add a Comment

Replies

its possible what your seeing is the extra "by default" padding added to the section header.

in your viewdidload add

    if (@available(iOS 15.0, *)) {
       [self.tableViewName setSectionHeaderTopPadding:0.0f];
     }

and see if that gap goes away

  • This works, thank you for the tip.

  • I second this. Saved me a lot of time in trying to figure this out. Much appreciated.

  • You rock man! Wasted hours on this.

Add a Comment

Hi, I used the same in ios15, but it is not worked for me.

I am using tableview with cells. And in that cells i am using another table view. While running upto ios14 those are looking good. But while running in ios15 i am missing some cell due to height. why.?

Add a Comment

Useful to fix the issues with extra padding, thank you! But does anyone know a fix so that we can run the project on Xcode 12 as well (which doesn't have the iOS 15 SDK)?

Run it with your devise in landscape