UIButton setText programmatically

You might want to be more specific next time you ask a question.

You can try assign a different tag for each button in interface builder (or the same tag if thats what you need) and then use the following code

for (int i = 1 ; i<=10;i++)
{
     UIButton *myButton = (UIButton *)[myView viewWithTag:i];
     [myButton setTitle:@"my text" forState:UIControlStateNormal];
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)