2010-03-11 2 views

ответ

4
-(void)action:(id)sender 
{ 

} 


UIButton *button = [UIButton buttonWithType: UIButtonTypeRoundedRect]; 
button.frame = CGRectMake(x, y, width, height); 
button.titleLabel.font = [UIFont systemFontOfSize: 30]; 

[button setTitle:@"TITLE" 
     forState:UIControlStateNormal]; 

[button addTarget:self 
     action:@selector(action:) 
     forControlEvents:UIControlEventTouchUpInside]; 

[self.view addSubview:button]; 
Смежные вопросы