Thread: Please help: expceted indetifier or'('

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

    Please help: expceted indetifier 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:
    
    
    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
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    You were told here that your code is not C. This time, you get to be told the code is not C++.

    Try looking up a Cocoa forum. No, I'm not kidding, although I'm not proficient in Cocoa.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Tags for this Thread