Wrox Programmer Forums
|
BOOK: Beginning iPad Application Development
This is the forum to discuss the Wrox book Beginning iPad Application Development by Wei-Meng Lee; ISBN: 9780470641651
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iPad 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 2nd, 2010, 08:56 AM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Can someone help me debug ?

When I attempted to build the code given in chapter 3 I got the following error codes (5 total)

In the OutletsAndActionsViewController.h

Code:
@end
I got the error Expected ',' before 'end'

here is all the code I have under OutletsAndActionsViewController.h :
Code:
//  OutletsAndActionsViewController.h
//  OutletsAndActions
//


#import <UIKit/UIKit.h>

@interface OutletsAndActionsViewController : UIViewController {
//---declaring the outlet----
	IBOutlet UITextField *txtName;
}
//---expose the outlet as a property---//
@property (nonatomic, retain) UITextField *textName;
//---declaring the action--
-(IBAction) btnClicked: (id) sender

@end
Can someone explain to me what that error means and what the code should look like ?
Thank you
 
Old October 3rd, 2010, 07:21 AM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

You are missing the semicolon at the end of your -(IBAction) declaration.
-(IBAction) btnClicked: (id) sender
should be
-(IBAction) btnClicked: (id) sender;
The Following User Says Thank You to thepianoguy For This Useful Post:
bryman (October 12th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
debug code iceman90289 C# 2005 2 March 31st, 2008 03:39 AM
Help Debug arholly Access VBA 19 December 18th, 2006 01:52 PM
Can't debug in VBA Cr0vaX Access VBA 3 September 15th, 2004 08:23 PM
Can't debug sithlrd General .NET 9 July 28th, 2004 05:00 PM
Can't Debug shmacgregor General .NET 6 March 1st, 2004 05:10 PM





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