What's wrong with this code?

Discussion in 'iOS Programming' started by nashyo, Jan 18, 2012.

  1. nashyo macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #1
    ERROR: expected method body

    Code:
    - (void)viewDidLoad 
    {
        self.questionNameLabel.text = _currentContent.QuestionName;
        self.answerALabel.text = _currentContent.Answer1;
        self.answerBLabel.text = _currentContent.Answer2;
        self.answerCLabel.text = _currentContent.Answer3;
        [self.imageBtn setBackgroundImage:_currentContent.Image1 forState:UIControlStateNormal];
        
        [super viewDidLoad];
    }
     
  2. nashyo thread starter macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #2
    Got it

    Debugging 101 - check above the error. There was a method half written and missing a closing block, just above this.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Asking For Help 101 - non-generic thread titles. Please be courteous of those you seek help from and use a thread title that describes the issue to some extent and not just something along the lines of "I need help". Thank you for your consideration.
     

Share This Page