UIViewController doesn't retain programmatic UISearchDisplayController

Originator:heath.borders
Number:rdar://10254897 Date Originated:10/7/2011
Status:Closed Resolved:
Product:iPad SDK Product Version:4.3.3
Classification:Other Bug Reproducible:Always
 
07-Oct-2011 11:14 PM Heath Borders:
Summary:
In the UIViewController documentation about the
searchDisplayController property [1] it says:

If you create your search display controller programmatically, this
property is set automatically by the search display controller when it
is initialized.

Steps to Reproduce:
[[[UISearchDisplayController alloc] initWithSearchBar:searchBar
contentsController:self] autorelease];

Expected Results:
-[UIViewController searchDisplayController] should be non-nil and retained until deallocation.

Actual Results:
-[UIViewController searchDisplayController] is set, but nilled out at the end of the event loop.

Regression:

Notes:


02-May-2012 10:05 AM Heath Borders:
I never received an email about this. What additional information is required? An example project?

Comments

Duplicated as 10972746.

By joseph.hainline at March 2, 2012, 6:50 p.m. (reply...)

bug has been submitted to Apple

I submitted this to bugreport.apple.com (ID 10371996). If/when I hear anything back I'll add another comment.


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!