delegate properties not declared "weak"

Originator:fabian.ehrentraud
Number:rdar://21870817 Date Originated:17-Jul-2015 10:11 AM
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode-beta (7A152u)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
In iOS SDK 9, there are still many delegate properties that are declared with "assign" which can lead to crashes. Since introduction of ARC these should be declared as "weak".

In iOS 9 SDK finally many delegates in UIKit have been changed and declared as "weak" (e.g. the UIScrollView delegate). Still there are several delegate properties declared as "assign", like the following:


* CLLocationManager
* NSFetchedResultsController
* NSCache
* UIWebView
* UIToolbar
* UITabBar


Expected Results:
All delegates in iOS SDK should be declared "weak".

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!