UITableView rotation problem

I have UIViewControllera UIViewc UITableViewinside.

Everything works fine in landscape mode, but when the device is rotated to Portrait, the lower half is UITableViewnot available (cannot even select any row in the lower half or scroll through the table). All lines are displayed correctly.

I twist and rearrange UIViewand UITableViewrotate.

Any ideas how to solve this problem?

+3
source share
1 answer

You must adjust the auto sort in Interface Builder or in code.

, UITableView - .

NSlog UITableView CGRect

NSlog(@"frame:%@",[NSStringFromCGRect(UITableView CGRect)]);
0

Source: https://habr.com/ru/post/1761069/


All Articles