摘要: #import "ViewController.h" #import #import @interface ViewController () @property(nonatomic,weak)UIImageView *image; @property(nonatomic,strong)MPM... 阅读全文
posted @ 2015-07-21 19:57 汤冉阳 阅读(182) 评论(0) 推荐(0) 编辑
摘要: //原理,还是调用UIImagePickerController控制器,设置Type为视频 #import "ViewController.h" #import @interface ViewController () @end @implementation ViewController... 阅读全文
posted @ 2015-07-21 18:40 汤冉阳 阅读(235) 评论(0) 推荐(0) 编辑
摘要: //原理:调用 #import "ViewController.h" @interface ViewController () @property(nonatomic,weak)UIImageView *photoImage; @end @implementation ViewControl... 阅读全文
posted @ 2015-07-21 18:39 汤冉阳 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)AVAudioRecorder*record;@property(nonatomic,strong)CADisplayLi... 阅读全文
posted @ 2015-07-20 22:28 汤冉阳 阅读(298) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)AVAudioPlayer*player;@end@implementation ViewController- (voi... 阅读全文
posted @ 2015-07-20 20:17 汤冉阳 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.控制器代码#import "ViewController.h"#import #import "RYAVTool.h"@interface ViewController ()@property(nonatomic,strong)NSMutableDictionary*allAvID;@end@i... 阅读全文
posted @ 2015-07-20 20:00 汤冉阳 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #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 汤冉阳 阅读(196) 评论(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 汤冉阳 阅读(146) 评论(0) 推荐(0) 编辑