IBDesignable should use initWithCoder: instead of initWitFrame:
Originator: | pitiphong.ph | ||
Number: | rdar://19901337 | Date Originated: | 20-Feb-2015 06:58 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 6.1.1 |
Classification: | Other Bug | Reproducible: | Always |
Summary: IBDesignable should use initWithCoder: instead of initWitFrame: Steps to Reproduce: 1. Create a custom UIView subclass and mark as IBDesingable 2. Implement initWithCoder: for initial the view via Storyboard 3. Implement initWithFrame: for create/use this view in code 4. Add view to Storyboard Expected Results: initWithCoder: get called Actual Results: initWithFrame: get called instead. Regression: Notes:
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!