Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts

Tags

News

  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: http://itunes.apple.com/us/book/book-1-diving-in-ios-app-development/id558788074?mt=11 Amazon: http://www.amazon.com/dp/B0097N8XBE Amazon: http://www.amazon.com/dp/B0099RQGMQ

Community

Email Notifications

Archives

Understanding iOS Compiler Errors - Expected ‘;’ after method prototype

0 0 1 51 292 Oak Leaf Enterprises, Inc 2 1 342 14.0 Normal 0 false false false EN-US JA X-NONE 0 0 1 5 32 Oak Leaf Enterprises, Inc 1 1 36 14.0 Normal 0 false false false EN-US JA X-NONE

Expected ‘;’ after method prototype

You usually get this error in a class header file method declaration if you forget to put a colon (not a semicolon) before a parameter. For example, there is a colon missing after addToTotal, the method name:

- (double) addToTotal(double)value;

 

To fix the problem, just add a colon before the parameter:

- (double) addToTotal:(double)value;

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

For explanations of other compiler errors and warnings, check out our new book site: http://www.iOSAppsForEveryone.com

 

Kevin McNeish
Eight-time .NET MVP Recipient
Apple iOS Author, Trainer
http://www.iOSAppsForEveryone.com 

 

 

Comments

Mohamed said:

Taking the oveirevw, this post is first class

# October 24, 2012 3:26 AM
Leave a Comment

(required) 

(required) 

(optional)
 

(required) 

If you can't read this number refresh your screen
Enter the numbers above: