Wrox Programmer Forums
|
BOOK: Beginning iOS 4 Application Development
This is the forum to discuss the Wrox book Beginning iOS 4 Application Development by Wei-Meng Lee; ISBN: 978-0-470-91802-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS 4 Application Development 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 October 29th, 2011, 08:22 PM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch. 4 view controls troubles

I have done the follow along in the book for the window-based application and can't seem to get it to build and run without several errors.
First error:
@interface HelloWorldViewController : HelloWorldViewController.m (expected identifier, cannot find interface declaration for HelloWorld) this is in viewController.h file

Second error:

#import "HelloWorldViewController.h"

@implementation HelloWorldViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{(hehelloworld cannot use super because it is in root class
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

these are the first two errors there are more but I will post them in a few.

Thanks in advance for the help. Also I am using Xcode 4.1 for this book and some of the examples are different formats with this version
 
Old October 30th, 2011, 08:18 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

It will be easier to diagnose if I can see the project in its entirety. Send it to
[email protected]
and I should be able to work it out for you.

Bob





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch. 3 - Using the Web View - UsingViews2 codan BOOK: Beginning iOS 4 Application Development 4 July 15th, 2011 11:09 AM
Ch 9-but will learn more abt User Controls (ch 8) btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 24th, 2010 11:40 AM
Multiple View controls shirk99 BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 0 March 23rd, 2010 12:28 PM
CH 10 Updatepanel - Design view RobertVL ASP.NET 3.5 Basics 2 July 6th, 2008 06:13 AM
Ch. 1: PHP Installation Troubles: php3 vs php manjito BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 12th, 2003 03:59 PM





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