iOS 定义按钮
2020-06-06 本文已影响0人
Zhen斌iOS
定义按钮:
UIButton*scaleUpButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
[scaleUpButton setTitle:@"按钮"forState:UIControlStateNormal];
scaleUpButton.frame = CGRectMake(40,420,100,40);
[scaleUpButton addTarget: self action:@selector(scaleUp) forControlEvents: UIControlEventTouchUpInside];
希望对你有帮助!