Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-23-2009, 01:55 AM   #8 (permalink)
anurag
Registered Member
 
Join Date: Dec 2008
Location: India
Posts: 143
Default

Quote:
Originally Posted by youngcoder View Post
i am doing this:
Code:
- (IBAction)showCheat
{
	{
		
		
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Warning!"
														message: @"Are You Sure you Want to See the Answer? Beware it Takes 3 Points Away From your Grade"
													   delegate: self
											  cancelButtonTitle: @"Cancel"
											  otherButtonTitles: @"OK"];
		[alert show];
		[alert release];
	}

	- (void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
		// the user clicked one of the OK/Cancel buttons
.........
		
}
but get the following errors on the red line:
Wrong type argument to unary minus
expected ';' before ':' token

thanks for any suggestions
As far as the above code is concerned, the method - (void)alertViewUIAlertView *)actionSheet clickedButtonAtIndexNSInteger)buttonIndex { is declared inside another method (IBAction) showCheat.

You should add a curly bracket } before the definition of the method -(void)alertView .....

Hope this helps.
anurag is offline   Reply With Quote
 

» Advertisements
» Online Users: 265
17 members and 248 guests
ADY, ckgni, IphoneSdk, iph_s, jakerocheleau, karunaskj, MarkC, michelle, peterkessler45, rob.mccarthy, rodrigozanatta, Speed, TheWebWizz, V_SC&, Xaron, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,218
Posts: 380,695
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.