0

I am using Boris's answer (objective-C) for custom tableview with round rectangle border.

Screenshot 1

It is working fine. It shows border around my custom tableView cells. When I rotate device in landscape mode then it also rotates but doesn't auto-resize border.

I also have a sliding menu that opens tableview screen. If I open tableview screen again in landscape mode using sliding menu button then it redraws cell border before cell appears and shows border correctly in landscape mode. So I know it appears correctly in landscape mode too but only when it reloads screen.

Screenshot 2

It should also redraw it upon rotation.I am trying to achieve it from last 2 days but it is not working anyhow. I tried to call willDisplayCell method manually in landscape mode but no success. I tried to refresh and reload tableView but none worked.

How do I fix it? Any help is appreciated.

Community
  • 1
  • 1
  • can you post screenshot of the TableView Constraint in the question so that it can get more clear – Sunil M. Mar 02 '17 at 04:43
  • I am creating tableview programmatically. The only thing I did in storyboard is that I added a group tableview with a cell. I am not using auto layout and using autoresizing. I have no constraints in my code or tableView storyboard screen because I am not using auto layout. – Jhonny Sharma Mar 02 '17 at 04:58
  • try to put background color and check wether the color is spreading in landscape mode or not – Sunil M. Mar 02 '17 at 05:03
  • yes I have tried that already and It is spreading correctly. – Jhonny Sharma Mar 02 '17 at 05:11
  • if you can show how is the output then i can help you – Sunil M. Mar 02 '17 at 05:16
  • okey, You can upload screenshot on any other website and paste here url also. – Sunil M. Mar 02 '17 at 05:35
  • This looks fine – Sunil M. Mar 02 '17 at 05:35
  • I just noticed that when I scroll tableview up and down in landscape mode then it refreshes any cell that goes out of screen first and appears on screen again. It shows those cells correctly (but not other cells that don't leave screen). I just need to refresh or reload complete tableview screen like it is being opened first time. – Jhonny Sharma Mar 02 '17 at 05:35

0 Answers0