Thread: Help with Expected identifier or '('

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    3

    Help with Expected identifier or '('

    I've been using a simple tutorial to start coding but can't resolve an error which keeps appearing, namely: expceted indetifier or'('

    It concerns my 3rd line -(IBAction)...

    Please help me

    Code:
    #import "StoryCalViewController.h"
    
    
    @interfaceStoryCalViewController ()
    
    
    -(IBAction)info:(id)sender;{
    
        NSString *message = [[NSString alloc] initWithString:@"Samuel Ford"];
    
        mylabel.text = message;
    
    }
    
    
    @end
    
    
    @implementation StoryCalViewController
    
    
    - (void)viewDidLoad
    {
        [superviewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    }
    
    
    - (void)didReceiveMemoryWarning
    {
        [superdidReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    }
    
    
    @end

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    This isn't C.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    3
    sorry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 04-14-2013, 11:15 AM
  2. expected identifier before numeric constant
    By Elixz in forum C Programming
    Replies: 14
    Last Post: 05-31-2012, 06:13 AM
  3. error: expected identifier or â(â before âwhileâ
    By philgrek in forum C Programming
    Replies: 9
    Last Post: 04-19-2011, 01:28 PM
  4. expected identifier
    By ozu in forum C Programming
    Replies: 5
    Last Post: 08-21-2010, 06:32 PM
  5. Error: expected identifier or ‘(’ before ‘{’ token
    By jpcanaverde in forum C Programming
    Replies: 66
    Last Post: 06-08-2010, 12:53 PM

Tags for this Thread