摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //1.添加一个视图 UIVie... 阅读全文
posted @ 2015-07-19 23:58 汤冉阳 阅读(264) 评论(0) 推荐(0) 编辑
摘要: //过期的加速计类UIAccelerometer是不需要引入系统框架的,//CoreMotionManager 需要引入CoreMotion框架#import "ViewController.h"#import #import "UIView+Extension.h"#import "AudioTo... 阅读全文
posted @ 2015-07-19 21:03 汤冉阳 阅读(197) 评论(0) 推荐(0) 编辑
摘要: /*建⽴立中⼼心设备扫描外设(Discover Peripheral)连接外设(Connect Peripheral)扫描外设中的服务和特征(Discover Services And Characteristics)利⽤用特征与外设做数据交互(Explore And Interact)断开连接(D... 阅读全文
posted @ 2015-07-19 21:02 汤冉阳 阅读(363) 评论(0) 推荐(0) 编辑
摘要: //UIDynamicAnimator :动态仿真#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIView *rectGreen;@property (weak,... 阅读全文
posted @ 2015-07-19 21:01 汤冉阳 阅读(147) 评论(0) 推荐(0) 编辑
摘要: //距离传感器,以注册通知的形式来实现的#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]... 阅读全文
posted @ 2015-07-19 21:00 汤冉阳 阅读(190) 评论(0) 推荐(0) 编辑