Template code for awakeFromNib doesn't call super
| Originator: | cloessl | ||
| Number: | rdar://18145800 | Date Originated: | 27-Aug-2014 11:43 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 5.1.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
The code template which Xcode creates for UITableViewCell has an awakeFromNib stub, but it doesn't call [super ...];
Bug is in Xcode 5 and Xcode 6 (beta 6)
Steps to Reproduce:
1. Have Xcode installed
2. Creating a new file (cmd - n) and choosing "Cocoa Touch Class" (DP-6)
3. Give the class a name
4. Subclass of: UITableViewCell
5. Finish the wizard
Expected Results:
The generated stub for awakeFromNib should be:
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
Actual Results:
The generated stub for awakeFromNib is:
- (void)awakeFromNib {
// Initialization code
}
Version:
Xcode 5.1.1 (5B1008)
Xcode 6.0 (6A280e)
10.9.4
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!