Wrox Programmer Forums
|
BOOK: Professional iPhone Programming with MonoTouch and .NET/C#
This is the forum to discuss the Wrox book Professional iPhone Programming with MonoTouch and .NET/C# by Wallace B. McClure, Rory Blyth, Craig Dunn, Chris Hardy, Martin Bowling ; ISBN: 978-0-470-63782-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone Programming with MonoTouch and .NET/C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 4th, 2010, 01:32 PM
Registered User
 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6, Table 4 example (page 120)

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?

Last edited by Spokane-Dude; November 4th, 2010 at 03:24 PM.. Reason: added comments
 
Old February 19th, 2011, 02:44 PM
Registered User
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Spokane-Dude View Post
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;}
       }
   }





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 120 Could not load type skhan ASP.NET 3.5 Basics 1 July 11th, 2009 09:57 AM
Chapter 4|Pg.120 - Step 7 jwriddle BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 28th, 2009 04:30 PM
Problem with page 120 Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 16th, 2008 09:12 AM
Chapter 4: Page 120 - Property value not valid. VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 April 3rd, 2008 12:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.