摘要:
xcode ,常用快捷键 阅读全文
摘要:
swift 获取iphone设备型号 阅读全文
摘要:
打开终端,cd到静态库的地方。输入命令 .framework文件 lipo -info ./BuleTool.framework/BuleTool 返回结果 Architectures in the fat file: ./BuleTool.framework/BuleTool are: i386 阅读全文
摘要:
Apple公司开发者账号申请(2017包含邓白氏码申请) 阅读全文
摘要:
原因:mac开启了root权限,打开终端输入下面语句关闭后重亲启动即可 sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE 阅读全文
摘要:
UIScrollView 手势冲突 阅读全文
摘要:
1,下面是一个浮点类型的数字转成String字符串的例子 var f = 123.123121313 var s:String = "\(f)" //123.123121313 2,如果要保留两位小数 var f = 123.123121313 var s = String(format:"%.2f 阅读全文
摘要:
//返回一个RGB颜色 class func getColor(r:CGFloat,g:CGFloat,b:CGFloat,l:CGFloat = 1) ->UIColor{ let color = UIColor(red: r/255.0, green: g/255.0, blue: b/255. 阅读全文
摘要:
//MARK:- UIScrollView let scrollView = UIScrollView() scrollView.delegate = target scrollView.backgroundColor = UIColor.groupTableViewBackground scrol 阅读全文