上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 41 下一页
摘要: 1.隐藏尾部或者头部,配套使用 2.显示自定义头部 3. 阅读全文
posted @ 2019-02-28 15:39 懂事长qingzZ 阅读(638) 评论(0) 推荐(0)
摘要: 1.封装 弹框http://www.hangge.com/blog/cache/detail_651.html 2.改变 标题颜色,按钮颜色,等等 https://blog.csdn.net/mo_xiao_mo/article/details/70308099 阅读全文
posted @ 2019-02-27 10:33 懂事长qingzZ 阅读(310) 评论(0) 推荐(0)
摘要: 1.正常view设置阴影 有一点需要注意,添加阴影的view需要设置背景色,如果是clear颜色 阴影没效果 func setShadow(view:UIView,sColor:UIColor,offset:CGSize, opacity:Float,radius:CGFloat) { //设置阴影 阅读全文
posted @ 2019-02-22 15:23 懂事长qingzZ 阅读(5551) 评论(0) 推荐(0)
摘要: 办法1: 问题界面 需求: 导航栏和HeaderView 使用一个背景图片。解决方案: 让 导航栏 变成透明。 override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // 1、设置导航栏半透明 阅读全文
posted @ 2019-02-22 10:03 懂事长qingzZ 阅读(269) 评论(0) 推荐(0)
摘要: 方法一(推荐):一级界面push的时候设置,子页面无需设置 方法二:设置两个界面, 阅读全文
posted @ 2019-02-21 16:44 懂事长qingzZ 阅读(345) 评论(0) 推荐(0)
摘要: Swift中static func 相当于class final func。禁止这个方法被重写 clas func 可以被继承重写 阅读全文
posted @ 2019-02-21 12:00 懂事长qingzZ 阅读(442) 评论(0) 推荐(0)
摘要: 第一种:文字和下划线颜色相同 private lazy var checkReasonBtn : UIButton = { let btn = JYUIModel.createBtn() btn.addTarget(self, action: #selector(clickCheckReasonBt 阅读全文
posted @ 2019-02-20 10:37 懂事长qingzZ 阅读(603) 评论(0) 推荐(0)
摘要: 第一种方法 let bgView = UIView() bgView.backgroundColor = R.color.color_blue()! bgView.layer.cornerRadius = 8 bgView.layer.maskedCorners = [.layerMinXMinYC 阅读全文
posted @ 2019-02-13 15:54 懂事长qingzZ 阅读(640) 评论(0) 推荐(0)
摘要: import UIKit class ViewController: UIViewController { override func touchesBegan(_ touches: Set, with event: UIEvent?) { print("点了 touchesBegan") let url... 阅读全文
posted @ 2019-02-11 14:04 懂事长qingzZ 阅读(352) 评论(0) 推荐(0)
摘要: import UIKit /* * 注册协议view:没找到 UI原图,咱不实现 */ class JYRegisterProtocolView: UIView { /// 点击同意协议的回调 private var clickSelectedBtnBlock:((_ isSelected:Bool) -> Void)? /// 点击完成按钮的回... 阅读全文
posted @ 2019-01-24 16:24 懂事长qingzZ 阅读(949) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 41 下一页