UITextField is not KVC compliant with most of its properties
| Originator: | ullrich.schaefer | ||
| Number: | rdar://16633622 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.x |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When I try to set properties like `returnKeyType` via KVC a NSUnknownKeyException is raised. Steps to Reproduce: 1. In Code create an instance of UITextField 2. Try to set `returnKeyType` via KVC like so: [textField setValue:@(UIReturnKeyNext) forKey:@"returnKeyType"]; Expected Results: The app not raising an exception and textField.returnKeyType == UIReturnKeyNext Actual Results: 2014-04-16 17:06:55.515 mvvm[59206:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITextField 0x8e74db0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key returnKeyType.' Version: iOS 7.x Notes: Configuration: Attachments:
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!