上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 34 下一页
摘要: 一、概念篇 什么是库?库是程序代码的集合,是共享程序代码的一种方式根据源代码的公开情况,库可以分为2种类型开源库公开源代码,能看到具体实现比如SDWebImage、AFNetworking闭源库不公开源代码,是经过编译后的二进制文件,看不到具体实现主要分为:静态库、... 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(733) 评论(0) 推荐(0)
摘要: 方式一:extension LoginViewController:UITextFieldDelegate { func textFieldShouldReturn(textField: UITextField) -> Bool { textFi... 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(442) 评论(0) 推荐(0)
摘要: // 按钮点击事件 func onTouchUpInside() { struct touchUpInside { static var count: Int = 0 } touchUpInsid... 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(111) 评论(0) 推荐(0)
摘要: // 设置边框的宽度 cell.layer.borderWidth = 1 // 设置边框的颜色 cell.layer.borderColor = UIColor.blackColor().CGCol... 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(333) 评论(0) 推荐(0)
摘要: 1.// 重新绘制cell边框 func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndex... 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(208) 评论(0) 推荐(0)
摘要: 模拟器分为ipad模拟器和iphone模拟器,尺寸都是固定的,就是320*480(iphone),640*960(iphone高清)1024*768(ipad),目前这个尺寸是不能调的. 阅读全文
posted @ 2017-05-31 09:42 公羽寒 阅读(154) 评论(0) 推荐(0)
摘要: 苹方提供了六个字重,font-family 定义如下:苹方-简 常规体font-family: PingFangSC-Regular, sans-serif;苹方-简 极细体font-family: PingFangSC-Ultralight, sans-serif... 阅读全文
posted @ 2017-05-31 09:41 公羽寒 阅读(1074) 评论(0) 推荐(0)
摘要: 1,创建进度条1234var progressView=UIProgressView(progressViewStyle:UIProgressViewStyle.Default)progressView.center=self.view.centerprogress... 阅读全文
posted @ 2017-05-31 09:41 公羽寒 阅读(348) 评论(0) 推荐(0)
摘要: Swift UIColor 16进制编码转换RGB :由于UI出图的时候,通常给的是16进制的编码颜色,我们在开发的时候需要将它转换为RGB格式,现在给出两种代码片段. 一、对UIColor进行扩展 1 extension UIColor { 2 3 /*... 阅读全文
posted @ 2017-05-31 09:41 公羽寒 阅读(381) 评论(0) 推荐(0)
摘要: iOS开发中界面跳转有两种方式,上下跳转和左右跳转。上下跳转_TO: let secondViewController = SecondViewController() self.presentViewController(secondViewController... 阅读全文
posted @ 2017-05-31 09:41 公羽寒 阅读(1905) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 34 下一页