Everything traces back to
init. A UITableViewCell is a subclass of NSObject, so it has an initmethod.initWithFrame is deprecated, and has been for some time (since iOS 3). You shouldn't be using it.
It was replaced in iOS 3 with
initWithStyle, which you use to indicate what style of cell you'd like to create.initWithCoder is another NSObject method, part of the NSCoding protocol. Again, you can see it inUITableViewCell because it is a sub-class of NSObject. initWithCoder is used to unarchive an object (perhaps you have saved an object directly to a file, for example).
コメント
コメントを投稿