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