预览:

Swift-UIKit(UIButton).png

import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        let MyButton = UIButton(type: .system)
        MyButton.frame = CGRect(x: 135, y: 50, width: 160, height: 35)
        MyButton.setTitle("Button(按钮)", for: .normal)
        MyButton.configuration = .filled()
        view.addSubview(MyButton)
        // Do any additional setup after loading the view.
    }
}

SwiftUIKitiOSUIButton

6 条评论

  1. jbjqwdftfw
    2025-03-04 19:47
    回复

    这篇文章如同一幅色彩斑斓的画卷,每一笔都充满了独特的创意。

  2. hhzlemuxjz
    2025-03-03 02:09
    回复

    ?情感共鸣类?

  3. xiyjnmkljm
    2025-03-01 03:01
    回复

    内容的丰富性和深度让人仿佛置身于知识的海洋,受益匪浅。

  4. ebdcobzyxo
    2024-11-28 22:40
    回复

    每次看到你的文章,我都觉得时间过得好快。 http://www.55baobei.com/3iqSClBQF9.html

  5. siixogtuyj
    2024-10-06 19:33
    回复

    不错不错,我喜欢看 www.jiwenlaw.com

  6. fhfmxujyhk
    2024-10-04 21:39
    回复

    想想你的文章写的特别好https://www.ea55.com/

添加新评论