I am required to make a view where number of buttons to be displayed will depend upon the argument to init. I want to create click event handlers for them dinamically too .. how can i make it possible ? using interface builder is out of question, obviously
CH
on start i tried doing this inside my view..
UIButton* btn = [[UIButton alloc] initWithFrame:CGRectMake(10, 10, 10, 10)];
btn.center = self.center;
[btn setTitle
"Ok" forState:UIControlStateNormal];
why is not the button displaying ?
CH
on start i tried doing this inside my view..
UIButton* btn = [[UIButton alloc] initWithFrame:CGRectMake(10, 10, 10, 10)];
btn.center = self.center;
[btn setTitle
why is not the button displaying ?
Last edited by a moderator: