2019年1月7日

摘要: 创建UISecrollView 实现页面滚动切换 ViewController: 创建两个swift文件,命名为 FirstViewControll,SeconfViewController: 两个文件只有背景颜色设置不一样 阅读全文
posted @ 2019-01-07 19:44 呆子编程LQ 阅读(187) 评论(0) 推荐(0)
摘要: ```swift import UIKit class ViewController: UIViewController{ //创建一个UIStackView类型的变量 var stackView:UIStackView! override func viewDidLoad() { super.viewDidLoad() //创建三个Vie... 阅读全文
posted @ 2019-01-07 16:46 呆子编程LQ 阅读(89) 评论(0) 推荐(0)
摘要: 纯代码使用: stouryborad中使用: 首先我们将一个 UIDatePicker 控件和一个按钮直接添加到 Main.Storyboard 上。该按钮是为了点击时弹出提示框显示当前选择的日期和时间。 同时在 ViewController.swift 中使用 IBOutlet 建立起控件和事件的 阅读全文
posted @ 2019-01-07 00:20 呆子编程LQ 阅读(228) 评论(0) 推荐(0)

导航