摘要: 重力感应代码: #import "ViewController.h" #import <CoreMotion/CoreMotion.h> @interface ViewController () //创建管理对象 水平仪 @property (nonatomic, strong) CMMotionM 阅读全文
posted @ 2018-07-06 10:35 哇哈爽 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: 1.在项目过程中,难免会遇到些奇特的场景,特此根据object-c的特性寻找根控制器或者栈顶控制器。正所谓艺多不养人,技多不压身 UIView+Addition.h #import <UIKit/UIKit.h> @interface UIView (Addition) //声明一下寻找跟控制器的方 阅读全文
posted @ 2018-07-06 09:20 哇哈爽 阅读(549) 评论(0) 推荐(0) 编辑