I created buttons using a for loop with different tags in objective c, but problem is that it doesn’t call BtnClick function except for first 2-3 button clicks. Any help will be appreciated.
for(int i = 0; i<40; i++)
{
UIButton butContinue...
btnContinue.tag=i;
[btnContinue setTitle:[NSString stringWithFormat:@"%d",i]
forState:UIControlStateNormal];
btnContinue.autoresizingMask=YES;
[btnContinue addTarget:self
action:@selector(clickBtn_Continue:)
forControlEvents:UIControlEventTouchUpInside];
}
Loop the code to create buttons
Action something like