1.滑动隐藏navbar
navigationController.hidesBarsOnSwipe = Yes;
2.ios外部应用跳转到自己应用
universal link 或者url scheme
3.同时响应多个手势
- (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer {//TODO:解决手势不灵敏问题returnYES; }
4.数据取整
Math.round:如果参数是小数,则求本身的四舍五入。
Math.ceil:如果参数是小数,则求最小的整数但不小于本身.
Math.floor:如果参数是小数,则求最大的整数但不大于本身.
5.https://github.com/ylechelle/OpenUDID
6.视频开发https://github.com/VideoFlint/Cabbage/wiki/中文说明
网友评论