Hi all,
NSString *name = @"John";
I need to pass the above variable value, when clicking on the uibutton. Currently I created the uibutton like below:
sendButton = [[UIButton alloc] initWithFrame:CGRectMake(170, 350, 90, 30)];
[sendButton setTitle:@"YES!" forState:UIControlStateNormal];
[sendButton addTarget:self action:@selector(sendAlert forControlEvents:UIControlEventTouchUpInside];
[sendButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
sendButton.backgroundColor = [UIColor whiteColor];
[popoverView addSubview:sendButton];
[sendButton release];
When I click the above button, it calls the method but I want to pass the variable (name) to the function...
Please guide me to get it ....