摘要: App(a):判断是否为App(b)是否存在,不存在选择下载 存在后台状态直接唤醒 否则直接打开App(a)部分代码 App(b)部分代码 通过广播唤醒appAndroidManifest.xml 阅读全文
posted @ 2017-06-21 16:13 肆万零叁佰贰拾 阅读(3033) 评论(1) 推荐(0) 编辑
摘要: https://github.com/wasabeef/awesome-android-ui 阅读全文
posted @ 2017-04-21 14:31 肆万零叁佰贰拾 阅读(80) 评论(0) 推荐(0) 编辑
摘要: tableView.estimatedRowHeight = 44.0 tableView.rowHeight = UITableViewAutomaticDimension 阅读全文
posted @ 2017-04-18 12:55 肆万零叁佰贰拾 阅读(836) 评论(0) 推荐(0) 编辑
摘要: //返回编辑类型,滑动删除 func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle { return UIT 阅读全文
posted @ 2017-04-18 12:54 肆万零叁佰贰拾 阅读(3507) 评论(0) 推荐(0) 编辑
摘要: cell.selectionStyle = UITableViewCellSelectionStyle.None; 阅读全文
posted @ 2017-04-18 12:53 肆万零叁佰贰拾 阅读(2444) 评论(0) 推荐(0) 编辑
摘要: text.userInteractionEnabled = false 阅读全文
posted @ 2017-01-11 10:04 肆万零叁佰贰拾 阅读(676) 评论(0) 推荐(0) 编辑
摘要: import UIKit class UIRadioButton: UIButton { private var ischeck = false override init(frame: CGRect) { super.init(frame: frame) self.layer.borderColo 阅读全文
posted @ 2017-01-10 11:42 肆万零叁佰贰拾 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2017-01-07 13:45 肆万零叁佰贰拾 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: NFC是Near Field Communication缩写,又称近距离无线通信,是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据传输(在十厘米内)交换数据。这个技术由免接触式射频识别(RFID)演变而来,并向下兼容RFID,最早由Sony和Philips各自开发成功,主要用于 阅读全文
posted @ 2016-10-09 20:02 肆万零叁佰贰拾 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: let screenh = UIScreen.mainScreen().applicationFrame.size.heightlet screenw = UIScreen.mainScreen().applicationFrame.size.width 阅读全文
posted @ 2016-09-30 15:34 肆万零叁佰贰拾 阅读(2175) 评论(0) 推荐(0) 编辑