下拉刷新
ZJRefreshControl
| ZJRefreshControl | 下拉刷新 加载更多 | Swift |
调用方式
1 | //只有下拉刷新 |
图片/视频选择
DNImagePicker
| DNImagePicker | 图片选择 | Objective-C |
调用方式
1 |
|
弹出层
DOAlertController
| DOAlertController | 弹出确认取消的层 | Swift |
调用方式
1 | let alertController = DOAlertController(title: "新建文件夹", message: "", preferredStyle: .Alert) |
Sphere Menu
| Sphere Menu | 弹出按钮菜单 | Swift |
调用方式
1 | //实现代理 DNImagePickerControllerDelegate |
侧滑菜单
RESideMenu
| RESideMenu | 侧滑菜单 | Objective-C |
TableViewCell侧滑
MGSwipeTableCell
| MGSwipeTableCell | TableViewCell侧滑 | Objective-C |
调用方式
- 1 引用头文件
1 | //侧滑按钮 |
2 需要侧滑的
tableViewCell继承MGSwipeTableCell3
Controller实现接口MGSwipeTableCellDelegate4 相关代码
1 | func createRightButtons() -> Array<MGSwipeButton>{ |
- 5 cell中调用
1 | cell.rightButtons = createRightButtons(); |
数据库
SQLiteDB
| SQLiteDB | 操作Sqlite数据库 | Swift |
调用方式
1 | let db = SQLiteDB.sharedInstance() |
数据请求
Swift数据请求常用的三个库
| Alamofire | 网络请求库 | Swift |
| SwiftyJSON | 转JSON | Swift |
| Alamofire-SwiftyJSON | 方便以上两个组件的结合使用 | Swift |