摘要:
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]原来的UITextAttributeTextCol... 阅读全文
摘要:
cd 到想要保存文件的本地文件夹git clone 地址比如git clone https://github.com/...然后 cd 这个克隆来的项目文件夹git checkout -f git上的版本标签比如git checkout -f git ReleaseLabelopen . // 可以... 阅读全文
摘要:
动画12 basic principles of animationhttps://en.wikipedia.org/wiki/12_basic_principles_of_animationhttp://the12principles.tumblr.com GIFhttp://vimeo.com/... 阅读全文
摘要:
在工程里面新建文件 Cocoa Touch Class 模版选对应的 比如 对 ImageView 扩展 就创建UIImageView 这个对应的类可以在 Identity Inspector 里面看默认的类名字import UIKit@IBDesignable // 添加这个实现StoryBoar... 阅读全文
摘要:
fun f1(){}fun f2(){}func fetch() { Alamofire.request(.POST, url, parameters: params).responseJson { _,_,JSON,_ in f1() } f2() // 注1}这里的f2... 阅读全文
摘要:
mixedjson_decode(string$json[,bool$assoc= false[,int$depth= 512[,int$options= 0]]] )当第二个参数为TRUE时 返回一个数组否则返回类element1;$element2 = $jsonData->element2;/... 阅读全文
摘要:
因为PHP的json_encode()只能编码 UTF-8 格式所以图片的源码肯定是不可以直接编码输出的方法还在查 阅读全文
摘要:
从手册上可以看到 这两个函数实质上是相同的。 阅读全文
摘要:
1、 在 debug 的时候总是显示 无法修改header 信息因为header 已经在line 1发送了可是line 1 就只有 一个 <php?后来发现在<php?前面竟然有个空格... 哎..2、复制header的时候尽量从同一个地方复制 要不然 Content-Length 不一样可能直接没... 阅读全文
摘要:
自己创建Cocoapods教程(包括上传Github) http://www.raywenderlich.com/99386/create-cocoapod-swift //原版 http://www.cocoachina.com/swift/20150806/12831.html //中文 UIS 阅读全文