04 2014 档案

iOS已发布应用中对异常信息捕获和处理
摘要:iOS已发布应用中对异常信息捕获和处理iOS开发中我们会遇到程序抛出异常退出的情况,如果是在调试的过程中,异常的信息是一目了然,但是如果是在已经发布的程序中,获取异常的信息有时候是比较困难的。iOS提供了异常发生的处理API,我们在程序启动的时候可以添加这样的Handler,这样的程序发生异常的时候... 阅读全文

posted @ 2014-04-24 13:50 景树园 阅读(232) 评论(0) 推荐(0)

IOS AVAUDIOPLAYER 播放器使用
摘要:1. 导入AVFoundation.framework2.导入头文件 #import 3.player = [[AVAudioPlayeralloc] initWithContentsOfURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"music"ofType:@"mp3"]] error:nil]; [playerprepareToPlay]; player.enableRate = YES;//可以设置播放速录 player.rate = 2.0;//播放的速度 pl 阅读全文

posted @ 2014-04-03 21:43 景树园 阅读(878) 评论(0) 推荐(0)

IOS SQLITE 数据库操作
摘要:NSArray * array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString * docPath = [array objectAtIndex:0]; NSString * dbPath = [docPath stringByAppendingPathComponent:@"test_db"]; NSLog(@"dbPath:%@",dbPath); sqlite3 * database; if( sqlite3_op 阅读全文

posted @ 2014-04-02 22:27 景树园 阅读(188) 评论(0) 推荐(0)

导航