The Documentation Does Not Note Since Which Version a Protocol is Implemented

Originator:fabian.ehrentraud
Number:rdar://20935964 Date Originated:13-May-2015 06:05 PM
Status:Open Resolved:
Product:Documentation Product Version:
Classification:Serious Bug Reproducible:Always
 
Example:

* The current documentation of `UISearchBar` says that it conforms to `UITextInputTraits`.
* Therefore a `UISearchBar` supports the method `enablesReturnKeyAutomatically`.
* The method `enablesReturnKeyAutomatically` says that it is supported from iOS 2.0 onwards.
* But calling `enablesReturnKeyAutomatically` on a `UISearchBar` on iOS 7.0 will crash.
* This is because `UISearchBar` only conforms to `UITextInputTraits` since iOS 7.1.
* The current documentation cannot represent that fact - but it should be added. A compile error would also help a lot.

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!