![240](https://cdn2.jianshu.io/assets/default_avatar/9-cceda3cf5072bcdd77e8ca4f21c40998.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
# React Native 的使用 ## 安裝環(huán)境 ### 1.安裝Homebrew ruby -e "$(curl -fsSL https:...
// 優(yōu)點: 1.不用考慮RunLoop法挨,切換RunLoop的時候 定時器照樣跑 // 2.不用考慮強(qiáng)引用導(dǎo)致 控制器不銷毀的問題详恼,定時器...
寫的有點亂 // 為了好測試 只對UIResponder做了延展 講道理應(yīng)該給NSobject 做延展 extension UIResponde...
在swift里面通過類名來創(chuàng)建類 anyClass 是一個協(xié)議 并不是一個類 所以并不能給anyClass 或者 anyObject 寫延展 加...
1.非集合 NSString (1)NSString copy:內(nèi)容拷貝 不可變類型 mutableCopy:內(nèi)...
先上OC版本 // UIButton+Touch.h// button//// Created by 馬耀 on 16/5/3.// Copyr...
//取得上下文 CGContextRef context = UIGraphicsGetCurrentContext(); //設(shè)置路徑 ...
別忘了添加到layer上!!!!! //創(chuàng)建動畫對象 CABasicAnimation *base = [CABasicAnimation a...
SnapKit是Masonry的Swift版养筒,項目發(fā)布至今大約1年的時間借跪,已經(jīng)在github上有兩千多個star 使用: 注意: UI控件的創(chuàng)建...