0

https://i.stack.imgur.com/jFUj8.png

these are the console logs!! the error is in the first line!

this is the "go" button it talks about and the "compute" action

https://i.stack.imgur.com/oarQp.png

this is some of my code that i am using in the view controller M file.

- (IBAction)compute:(id)sender {
    float answer = (21.75 + [_shoeSize.text floatValue])/3;
    float feet = answer/12;
    float result = feet * [_numberOfFeet.text floatValue];

    self.answerDisplay.text = [[NSString alloc] initWithFormat:@"%f", result];
} 
bneely
  • 9,083
  • 4
  • 38
  • 46
  • 4
    Please update your question with the complete error message at the top of the stack trace in the 1st image you linked. Then do a search on the error message. You will find plenty of existing discussion on that error. – rmaddy Feb 27 '14 at 21:54
  • Check your .xib file, and ensure all IBActions and IBOutlets are connected properly. – WDUK Feb 27 '14 at 22:04
  • 3
    Let me guess, you hooked your "go" button up to an outlet `go`, but you decided you didn't need it and deleted that from your code. But you forgot to remove it in Interface Builder too. – Gavin Feb 27 '14 at 22:04
  • Gavin, thats what other people were saying, but i dont remember doing that. – user3307527 Feb 27 '14 at 22:21
  • i cant put more than two links so here: http://i.stack.imgur.com/7PZI3.png – user3307527 Feb 27 '14 at 22:24
  • 2
    @Gavin is right -- this log indicates a broken connection in a xib/storyboard file. – bneely Feb 27 '14 at 22:25
  • in the storyboard file it says everything is still connected?(i go to each connection and click the dot to insure its connected to the right object) – user3307527 Feb 27 '14 at 22:32
  • Check that the GoButton or the ViewController in the Storyboard has not an "old" connection. – Larme Feb 27 '14 at 22:40
  • never mind guys i fixed it! i deleted go and everything it was attached to and made a new button to start fresh. it works now! thankyou everyone for the help! it was greatly appreciated. – user3307527 Feb 27 '14 at 22:53

0 Answers0