UITableView bottom edge inset incorrect

Originator:thauk
Number:rdar://23634299 Date Originated:20-Nov-2015 12:48 PM
Status:Duplicate of 12535741 Resolved:
Product:iOS Product Version:9.1
Classification: Reproducible:Always
 
Also reproducible always on iPod Touch running iOS 8.4

Summary:
Given a navigation controller with a toolbar, which encloses a UITableViewController that presents a UISearchController, when the results controller is presented, its bottom edge inset will be incorrect when the keyboard animates into view.

Sample project is based on Apple sample code TableSearchwithUISearchController with the following two miniscule changes:

1. Open APLAppDelegate.m and make 15 extra copies of first APLProduct element "iPhone" in products array (helps to visualize issue)

2. Open MainStoryboard.storyboard, go to Navigation Controller Scene -> Navigation Controller, check (on) setting Bar Visibility -> Shows Toolbar

Steps to Reproduce:
1. Build & launch sample app
2. Tap search bar
3. Type "i"
4. Scroll to bottom of table

Expected Results:
Table bottom inset should be just above keyboard

Actual Results:
Table inset is ~44 pixels too high above keyboard (i.e. height of toolbar)

Version:
iOS 9.1

Notes:


Configuration:
iPhone 6s Plus / iOS 9.1 Simulator

Attachments:
'Screen Shot 2015-11-20 at 12.40.51 PM.png' and 'TableSearchwithUISearchController-radar.zip' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!