美文网首页
2023-01-19

2023-01-19

作者: uc43 | 来源:发表于2023-01-18 17:19 被阅读0次
    - (void)viewDidLoad {    
        UIButton * testButton = [UIButton buttonWithType:UIButtonTypeCustom];    
        [testButton setFrame:CGRectMake(0, 0, 60, 30)];    
        [testButton setTitle:@"测试按钮" forState:UIControlStateNormal];    
        [self.view addSubview:testButton]; 
    }
    
    var body: some View {    
        Button(){       
            Text("测试按钮")         
                .frame(width: 60, height: 30, alignment: .left)    
        }
    }
    

    相关文章

      网友评论

          本文标题:2023-01-19

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