Table view content insets get adjusted wildly when rotating a share extension

Number:rdar://18207630 Date Originated:09/02/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8
Classification:Serious Bug Reproducible:Always
Rotating a share extension while the keyboard is up and a UITableViewController is on screen causes the bottom contentInset to be adjusted to an invalid value, causing the content to be pushed off screen.

Steps to Reproduce:
0. ensure that orientation lock is off
1. run the attached application
2. go to Safari, tap the share button, go to more.
3. enable "awesomeshare"
4. hit done
5. tap on "awesomeshare" in the activity picker
6. tap on any of the cells within the share extension
7. rotate the device.

Expected Results:
The UITableView should properly adjust itself based upon the keyboard size.

Actual Results:
The UITableView is improperly adjusted, causing the content to move completely off screen

iOS 8 Beta 5

Toggling the switch within the extension to the on position will start executing the 'sane height' code path. After this option is enabled, you should be able to rotate correctly.

iPHone 5 64GB AT&T

'' was successfully uploaded.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!