美文网首页
iOS 定义按钮

iOS 定义按钮

作者: Zhen斌iOS | 来源:发表于2020-06-06 12:25 被阅读0次

    定义按钮:

    UIButton*scaleUpButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [scaleUpButton setTitle:@"按钮"forState:UIControlStateNormal];
    scaleUpButton.frame = CGRectMake(40,420,100,40);
    [scaleUpButton addTarget: self action:@selector(scaleUp) forControlEvents: UIControlEventTouchUpInside];
    

    希望对你有帮助!

    相关文章

      网友评论

          本文标题:iOS 定义按钮

          本文链接:https://www.haomeiwen.com/subject/xghxtktx.html