Quote:
Originally Posted by Spokane-Dude
Has anybody tried to create the sample on page 120 from scratch successfully?
I have tried, but IB doesn't generate the same source code as the downloaded sample code.
Any ideas why?
|
In MyTableViewCell.cs, make sure you change the MyTableViewClass to inherit from UITableViewCell (and modify the IntPtr and NSCoder versions of the constructor accordingly).
Also, you need to add the following to MyTableViewCell.cs to get the code from the book to work:
Code:
public partial class MyTableViewController : UITableViewController {
public MyTableViewCell MyCell {
get {return Cell;}
set {Cell = value;}
}
}