摘要: document.title //设置文档标题等价于HTML的title标签 document.bgColor //设置页面背景色document.fgColor //设置前景色(文本颜色)document.linkColor //未点击过的链接颜色document.alinkColor //激活链 阅读全文
posted @ 2016-10-11 21:34 iGenius 阅读(16064) 评论(0) 推荐(0)
摘要: //获取网页地址对应的字符串 var urlString = url.absoluteURL.absoluteString 阅读全文
posted @ 2016-10-11 19:28 iGenius 阅读(171) 评论(0) 推荐(0)
摘要: 1 import UIKit 2 3 class MainTabBarViewController: UITabBarController { 4 5 override func viewDidLoad() { 6 super.viewDidLoad() 7 //1.获取json文件的地址 8 guard le... 阅读全文
posted @ 2016-10-10 22:41 iGenius 阅读(1627) 评论(0) 推荐(0)
摘要: Q1.出现 "resource load since it is insecure" 或者 "The resource could not be loaded because the App Transport Security policy requires the use of a secure 阅读全文
posted @ 2016-10-10 22:05 iGenius 阅读(6004) 评论(0) 推荐(0)
摘要: 1.网络测试可以使用httpbin.org来测试 2.javascrip经常用于对网页进行操作,是一个脚本语言 阅读全文
posted @ 2016-10-10 16:30 iGenius 阅读(231) 评论(0) 推荐(0)
摘要: 创建单例的方式 具体使用方式 单例主要分两种: 1.通过shareInstance拿到的永远是一个实例 2.不管怎样,拿到都永远是一个实例 阅读全文
posted @ 2016-10-10 16:09 iGenius 阅读(943) 评论(0) 推荐(0)
摘要: 第一次安装失败是由于Homebrew一直安装不成功,遂去http://brew.sh/index_zh-cn.html官网 通过 rvm install 2.3.0 安装了Ruby,安装Ruby成功后输入按照常规步骤到 pod repo remove master出现如下错误 [!] repo ma 阅读全文
posted @ 2016-10-10 15:45 iGenius 阅读(2979) 评论(1) 推荐(0)
摘要: 既然SnapKit的作者说SnapKit已经支持Swift3.0了,那么我们就先来适配SnapKit,首先用Xcode8新建一个空项目,利用Cocoapods导入SnapKit. Podfile Podfile 打开工程,依然弹出这个选项: 是否转换到Swift3.0 是否转换到Swift3.0 刚 阅读全文
posted @ 2016-10-10 15:25 iGenius 阅读(2896) 评论(0) 推荐(0)
摘要: AFNetworking:网络连接 SVProgress:给用户提示 SDWebImage:设置远程图片 SnapKit:手动给添加的控件添加约束,masonry团队转为Swift语言制作的框架 阅读全文
posted @ 2016-10-10 15:17 iGenius 阅读(337) 评论(0) 推荐(0)