2019年1月10日

摘要: 创建UITablView 使用不同样式单元格 自定义UItableViewCell 创建一个Cocoa Touch class文件,设置父类:UITableViewCell,名称为CustomizeTableViewCell 编辑CustomizeTableViewCell: 编辑ViewContr 阅读全文
posted @ 2019-01-10 20:13 呆子编程LQ 阅读(171) 评论(0) 推荐(0)

2019年1月9日

摘要: ```swift import UIKit class ViewController: UIViewController{ override func viewDidLoad() { super.viewDidLoad() //创建UIView并设置其位置 let view = UIView(frame: CGRect(x: 150, y: ... 阅读全文
posted @ 2019-01-09 14:06 呆子编程LQ 阅读(125) 评论(0) 推荐(0)
摘要: ```swift import UIKit class ViewController: UIViewController{ override func viewDidLoad() { super.viewDidLoad() let view = UIView(frame: CGRect(x: 150, y: 250, width: 100, height: ... 阅读全文
posted @ 2019-01-09 14:06 呆子编程LQ 阅读(64) 评论(0) 推荐(0)
摘要: 学习本章,先掌握WKWebView,UIToolbar,UITextField 阅读全文
posted @ 2019-01-09 14:05 呆子编程LQ 阅读(95) 评论(0) 推荐(0)
摘要: ```swift import UIKit class ViewController: UIViewController{ var activityIndicator:UIActivityIndicatorView! override func viewDidLoad() { super.viewDidLoad() //设置环形滚动条的样式 ... 阅读全文
posted @ 2019-01-09 14:04 呆子编程LQ 阅读(122) 评论(0) 推荐(0)
摘要: WKWebView加载页面 阅读全文
posted @ 2019-01-09 14:03 呆子编程LQ 阅读(112) 评论(0) 推荐(0)
摘要: 预置样式:25个样式 Custom:默认样式 Flexible Space:自动伸缩的空白占位符 Fixed Space:固定宽度的占位元素 Add:“+”加号样式 Edit:Edit文字样式 Done:Done文字样式 Cancel:Cancel文字样式 Save:Save文字样式 Undo:Un 阅读全文
posted @ 2019-01-09 14:01 呆子编程LQ 阅读(73) 评论(0) 推荐(0)
摘要: ```swift import UIKit class ViewController: UIViewController{ override func viewDidLoad() { super.viewDidLoad() //SwipeGestureRecognizer:滑动手势 let swipe = UISwipeGestureReco... 阅读全文
posted @ 2019-01-09 14:00 呆子编程LQ 阅读(123) 评论(0) 推荐(0)
摘要: 1.加速传感器可以监听到x,y,z三个方向的加速度,步骤如下: (1)实例化CMMotionManager类 (2)向CMMotionManager的accelerometerUpdateInterval属性中设置通知间隔时间值 (3)使用PerationQueeu.current建立一个监听队列 阅读全文
posted @ 2019-01-09 13:59 呆子编程LQ 阅读(69) 评论(0) 推荐(0)

2019年1月7日

摘要: 创建UISecrollView 实现页面滚动切换 ViewController: 创建两个swift文件,命名为 FirstViewControll,SeconfViewController: 两个文件只有背景颜色设置不一样 阅读全文
posted @ 2019-01-07 19:44 呆子编程LQ 阅读(187) 评论(0) 推荐(0)

导航