2
你能给我一些链接或示例程序能够在一个视图和它的行动创造UIButtons,我们需要在其他视图中创建一个多个按钮.. plz帮助问题中的UIButton在iPhone编程
你能给我一些链接或示例程序能够在一个视图和它的行动创造UIButtons,我们需要在其他视图中创建一个多个按钮.. plz帮助问题中的UIButton在iPhone编程
-(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];