摘要: #import <UIKit/UIKit.h> CGPoint CGRectGetCenter(CGRect rect); CGRect CGRectMoveToCenter(CGRect rect, CGPoint center); @interface UIView (ViewFrameGeom 阅读全文
posted @ 2016-08-10 14:50 ReHo 阅读(659) 评论(0) 推荐(0) 编辑
摘要: import Foundation class DebugLogTool: NSObject { private static let isDebug = true /** * 自定义log打印 */ static func debugLog(item: Any){ if isDebug { pri 阅读全文
posted @ 2016-08-10 14:47 ReHo 阅读(712) 评论(1) 推荐(1) 编辑
摘要: //系统版本号 public let K_CLIENT_VERSION = NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"] as! String //APPDELEGATE 对象 public let APP_D 阅读全文
posted @ 2016-08-10 14:42 ReHo 阅读(393) 评论(1) 推荐(1) 编辑
摘要: #pragma 正则匹配手机号 //swift //******正则表达式 Regular Expressions*************** let K_PHONE = "1[0-9]{10}" let K_IDCARD = "SELF MATCHES '^(\\d{14}|\\d{17})(\ 阅读全文
posted @ 2016-08-10 14:38 ReHo 阅读(173) 评论(0) 推荐(0) 编辑