定义按钮:
UIButton*scaleUpButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
[scaleUpButton setTitle:@"按钮"forState:UIControlStateNormal];
scaleUpButton.frame = CGRectMake(40,420,100,40);
[scaleUpButton addTarget: self action:@selector(scaleUp) forControlEvents: UIControlEventTouchUpInside];
希望对你有帮助!
网友评论