I have a UITableViwe with autoresizingMask = UIViewAutoresizingFlexibleWidth. Some of the cells contain a UITextField.
When the device is rotated, the table and the text fields resize correctly to the full width of the device, but when I check the bounds of the cell and the bounds of the text field in tableView:cellForRowAtIndexPath: after the rotation - I get the original bounds as if the device was not rotated.
Is there a way to get the actual bounds after the rotation? I need this information to populate the text field correctly.
只需为文本视图设置UIViewAutoresizingFlexibleWidth。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.