2017年1月4日

关于项目创建的宏定义

摘要: 1、快速的创建一个异步线程 #define GCD_BACK(block) dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block) 2、快速回到主线程 #define GCD_MAIN( 阅读全文

posted @ 2017-01-04 10:58 敏言慎行 阅读(153) 评论(0) 推荐(0) 编辑

获取设备的方向

摘要: 1.手机朝向的枚举 typedef NS_ENUM(NSInteger, UIDeviceOrientation) { UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // 设备面向垂直,home 按钮在底部 UIDeviceOrie 阅读全文

posted @ 2017-01-04 10:41 敏言慎行 阅读(183) 评论(0) 推荐(0) 编辑

手势互斥

摘要: 1.如果一个视图添加了好几个手势 //拖拽手势 UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(playerPan:)]; [m_touchView 阅读全文

posted @ 2017-01-04 10:32 敏言慎行 阅读(183) 评论(0) 推荐(0) 编辑

导航