objective c - Errors with Alert Views -


i have error when run code: says undeclared identifier of 'alertview' line of code:

-(void)alertview:(uialertview* )alertview clickedbuttonatindex:(nsinteger)buttonindex     {          if(buttonindex==0)          else if(butonindex==1)      } 

thank help.

it goes following.

- (void)dismisspop2:(nsstring *)projectname {     projectdelete = projectname;     nsstring *msg = [nsstring stringwithformat:@"are sure want delete project (%@)?",projectname];     uialertview *alert = [[uialertview alloc] initwithtitle:@"- project deletion -"                                                 message:msg                                                delegate:self                                       cancelbuttontitle:@"cancel"                                       otherbuttontitles:@"delete", nil];     [alert settag:100];     [alert show]; }  - (bool)alertviewshouldenablefirstotherbutton:(uialertview *)alertview { // validation     if ([alertview tag] == 100) {         return yes;     }      else {         return yes;     } }  - (void)alertview:(uialertview *)alertview diddismisswithbuttonindex:(nsinteger)buttonindex {     if ([alertview tag] == 100) {     // deleting project     if (buttonindex == 1) {         // since user has tapped yes     } } 

if doesn't help, should show more work.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -