Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
Old February 19th, 2011, 01: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;}
       }
   }
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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



All times are GMT -4. The time now is 03:02 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.