objective c - runtime error ns invalid arguement exception -


i newbie regarding ios programming objective c. don't have experience , help.

here output describing error:2013-08-08 17:48:47.957 multmachine[57549:c07] -[viewcontroller play:]: unrecognized selector sent instance 0x7578870 2013-08-08 17:48:47.959 multmachine[57549:c07] * terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[viewcontroller play:]: unrecognized selector sent instance 0x7578870'

//  viewcontroller.h //  multmachine // //  created danny takeuchi on 8/7/13. //  copyright (c) 2013 danny takeuchi. rights reserved. //  #import <uikit/uikit.h> nsstring *questionlist[100]; @interface viewcontroller : uiviewcontroller @property (weak, nonatomic) iboutlet uibutton *playbutton; @property (weak, nonatomic) iboutlet uilabel *question; @property (weak, nonatomic) iboutlet uitextfield *answer; - (ibaction)preparequestion:(id)sender; - (ibaction)process:(id)sender; @property (weak, nonatomic) iboutlet uibutton *checkanswer;  @end        // //  viewcontroller.m //  multmachine // //  created danny takeuchi on 8/7/13. //  copyright (c) 2013 danny takeuchi. rights reserved. //  #import "viewcontroller.h"  @interface viewcontroller ()  @end  @implementation viewcontroller  - (void)viewdidload {     [super viewdidload];     // additional setup after loading view, typically nib. }  - (void)didreceivememorywarning {     [super didreceivememorywarning];     // dispose of resources can recreated. }   - (ibaction)process:(id)sender {  } - (ibaction)preparequestion:(id)sender {     int z=0;     while(z<=100){         for(int x=1;x<=10;x++){             for(int y=1;y<=10;y++){                 questionlist[z]=[[[nsstring stringwithformat:@"%d",x] stringbyappendingstring:@"*"] stringbyappendingstring:[nsstring stringwithformat:@"%d",y]];             }         }     }     [_question settext:questionlist[random()%100]]; } @end 

when error? when pressing play button? did create , wired -(ibaction)play:(id)sender; , deleted it?


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -