上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页
摘要: 1. scrollview 添加 子控件, 必须设置 宽度和高度, 他自己无法撑满2. scrollview的子空间的约束 只能相对于 左边 的顶部, 无法设置右边和底部的约束 3. 设置最小距离 4.如果你SV里面封装了一个tableview或者有封装了一个View, View里面有一个SV,此时 阅读全文
posted @ 2018-09-05 09:55 懂事长qingzZ 阅读(227) 评论(0) 推荐(0)
摘要: 1. 真正在任何系统上都有效的方法 下面是错误方法 1. 在iOS 11 上没问题, 在iOS10 和iOS9 上 会直接可以编辑 无法跳转 阅读全文
posted @ 2018-08-31 11:25 懂事长qingzZ 阅读(541) 评论(0) 推荐(0)
摘要: 在iOS 11 上, 1.先执行动画组 在设置图片执行帧动画,2.先设置图片在设置帧动画,执行帧动画 没有任何问题在iOS 10和iOS9上,必须 执行 方法二(先设置图片在设置帧动画,执行帧动画 ),不然执行完帧动画, 图片设置不上 阅读全文
posted @ 2018-08-31 10:20 懂事长qingzZ 阅读(205) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Mazy_ma/article/details/70185547 阅读全文
posted @ 2018-08-27 10:32 懂事长qingzZ 阅读(114) 评论(0) 推荐(0)
摘要: swift 版 var numbers = [17, 28, 36, 15, 39] print("排序前\(numbers)") for i in 0..<numbers.count - 1 { for j in 0..<numbers.count - 1 - i { if numbers[j] 阅读全文
posted @ 2018-08-23 17:09 懂事长qingzZ 阅读(131) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/potato512/article/details/52692604 阅读全文
posted @ 2018-08-23 10:25 懂事长qingzZ 阅读(143) 评论(0) 推荐(0)
摘要: 办法1 使用 self.bgView.image = UIImage.init(named: model["bgView"] ?? "")?.getTensileImage() 办法2/* * Stretch 拉伸 * Tile 平铺 */ self.bgView.image = UIImage.i 阅读全文
posted @ 2018-08-14 18:09 懂事长qingzZ 阅读(144) 评论(0) 推荐(0)
摘要: import UIKit class JYJYBouncedCouponsViewCellBgView: UIView { //一定要在这里设置 背景色, 不要再draw里面设置, override init(frame: CGRect) { super.init(frame: frame) self.backgroun... 阅读全文
posted @ 2018-08-14 13:55 懂事长qingzZ 阅读(2649) 评论(0) 推荐(0)
摘要: import UIKit class TextUpperLeftLabel: UILabel { override func textRect(forBounds bounds: CGRect, limitedToNumberOfLines numberOfLines: Int) -> CGRect { var textRect = super.textRec... 阅读全文
posted @ 2018-08-13 13:28 懂事长qingzZ 阅读(490) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/1dea9987c647 阅读全文
posted @ 2018-08-03 13:03 懂事长qingzZ 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页