Unnecessary viewDidUnload is generated when creating outlets

Originator:yang.meyer
Number:rdar://11891615 Date Originated:2012-07-12
Status:Duplicate Resolved:
Product:Xcode Product Version:4.5 (4G125j)
Classification:Other Bug Reproducible:Always
 
[Duplicate of 11585415 (Closed)]


Summary:
Creating outlets by Ctrl-dragging from a nib/storyboard to .h file generates self.myOutlet = nil in the -viewDidUnload method (and creates the method if it does not exist yet).

Steps to Reproduce:
Create an outlet by Ctrl-dragging from a nib/storyboard to .h file.

Expected Results:
Outlet created and connected, but no -viewDidUnload creation or amendment.

Actual Results:
Outlet created and connected, and -viewDidUnload is created or amended.

Notes:
Nilling outlets in -viewDidUnload was already unnecessary with ARC weak references.
[Redacted: why this is even more pertinent in iOS 6.]

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!