Add [UIView addsBehaviorsToSubviews:]
| Originator: | robnapier | ||
| Number: | rdar://15054341 | Date Originated: | 23-Sep-2013 10:31 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
See also 15054302, 15054316. When adding a view to a view hierarchy, it is necessary to keep track of all of the default behaviors so that you can add the new view to each behavior. This makes it difficult to maintain separation of concerns. UIView should be able to automatically add behaviors to its new subviews (see also 15054302 for the concept of adding behaviors to items rather than items to behaviors). An implementation would be -addsBehaviorsToSubviews: which takes an NSArray of behaviors.
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!