【发布时间】:2025-11-20 18:10:02
【问题描述】:
此代码不正确。我怎样才能重写这段代码?或任何其他方式来解决这个问题。?
- (IBAction)actionButton:(id)sender {
}
actionButton.layer.cornerRadius = 4.0f;
//my original code
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
backGroundImage.image = [UIImage imageNamed:@"3.png"];
blurAlertAction.layer.cornerRadius = 4.0f;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)blurAlertAction:(UIButton*)sender {
sender.layer.cornerRadius = 4.0f;
BlurViewAlert * addView = [BlurViewAlert new];
[addView bluredView];
[addView setBlurEffectStyle:UIBlurEffectStyleDark];
[addView setTitle:@"Set your goal"];
[addView setPlaceholder:@"$"];
addView.onSubmit = ^BOOL(NSString *value){
NSLog(@"%@",value);
return YES;
};
[addView show];
}
【问题讨论】:
标签: ios objective-c iphone ios7