摘要: #import <AVFoundation/AVFoundation.h> @interface ViewController () @property(nonatomic,strong)AVAudioPlayer *player; @end @implementation ViewControll 阅读全文
posted @ 2016-02-29 20:11 small-elephant_A-Do 阅读(120) 评论(0) 推荐(0) 编辑
摘要: /** *创建一个队列(串行) **/ dispatch_queue_t queue1 = dispatch_queue_create("queue1", DISPATCH_QUEUE_SERIAL); /** *添加代码块 执行线程的路径 **/ dispatch_async(queue1, ^{ 阅读全文
posted @ 2016-02-29 10:21 small-elephant_A-Do 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 创建并调用本地通知的几个步骤 1,创建本地通知 2,设置处理时间 3,设置通知主体 4,可以设置传递的参数userinfo 5,调用通知 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(N 阅读全文
posted @ 2016-02-29 06:58 small-elephant_A-Do 阅读(174) 评论(0) 推荐(0) 编辑