01 2017 档案

使用绘图,动画
摘要:1. CGMutablePathRef starPath = CGPathCreateMutable(); CGPathMoveToPoint(starPath,NULL,100.0f, 100.0f); CGPathAddLineToPoint(starPath, NULL, 100.0f, 28 阅读全文

posted @ 2017-01-11 09:25 敏言慎行 阅读(239) 评论(0) 推荐(0)

关于项目创建的宏定义
摘要: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 敏言慎行 阅读(168) 评论(0) 推荐(0)

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

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

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

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

当前界面最上面添加视图(UIWimdow)
摘要:-(void)windowAddPushVc:(UIView *)pushView WithTitle:(NSString *)title { UIWindow *window = [UIApplication sharedApplication].keyWindow; UINavigationBa 阅读全文

posted @ 2017-01-03 08:21 敏言慎行 阅读(219) 评论(0) 推荐(0)

导航