随笔分类 - Swift 学习
摘要:tableView.estimatedRowHeight = 44.0 tableView.rowHeight = UITableViewAutomaticDimension
阅读全文
摘要://返回编辑类型,滑动删除 func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle { return UIT
阅读全文
摘要:cell.selectionStyle = UITableViewCellSelectionStyle.None;
阅读全文
摘要:text.userInteractionEnabled = false
阅读全文
摘要:import UIKit class UIRadioButton: UIButton { private var ischeck = false override init(frame: CGRect) { super.init(frame: frame) self.layer.borderColo
阅读全文
摘要:1 func isTelNumber(num:NSString)->Bool 2 { 3 var mobile = "^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$" 4 var CM = "^1(34[0-8]|(3[5-9]|5[017-9]|8[278])\\d)\\d{7}$" 5 var CU = "^1(3[0-2]|5...
阅读全文
摘要:let screenh = UIScreen.mainScreen().applicationFrame.size.heightlet screenw = UIScreen.mainScreen().applicationFrame.size.width
阅读全文
摘要:故事面板中设置圆角(storyboard) Key Path layer.borderWidth(边框宽度) layer.cornerRadius(圆角弧度) layer.borderColor(边框颜色) layer.masksToBounds Type Number Number Color B
阅读全文
摘要:如下图效果: 2.去除String指定字符 陆续添加中。。。
阅读全文

浙公网安备 33010602011771号