开发者

tableview size when switching to landscape iphone

开发者 https://www.devze.com 2023-01-01 19:19 出处:网络
I have a UITableViewController with a table view that works开发者_运维百科 perfectly when in portrait mode.

I have a UITableViewController with a table view that works开发者_运维百科 perfectly when in portrait mode.

the problem is when IO rotate the phone the tableView won't scroll all the way through it keeps bouncing back. (have switched bounce scrolling off) I suspect the tableview size is not correct but I can't fibure out why this works for multiple tableviews in the app except this one.


Make sure the table view's autoresizingMask property is set to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight, or manually set its frame to the fit its containing view in your view controller (you are using a view controller, right?)'s -willAnimateRotationToInterfaceOrientation:duration: method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号