摘要: 在iphone开发中我们有时候需要播放短音提示用户的操作,iphone api提供了简单的播放短音类,具体实现方法如下 //播放声音变量 CFURLRef soundFileURLRef; SystemSoundID soundFileObject; CFBundleRef mainBundle = CFBundleGetMainBundle(); soundFileURLRef = CFBundleCopyResourceURL(mainBundle, CFSTR("page"), CFSTR("aif"), NULL); AudioServicesC 阅读全文
posted @ 2011-06-26 15:09 fighter 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 在iphone中要显示当前网络是否连接只需要两句话就可以搞定了//显示网络连接状态UIApplication *app = [UIApplication sharedApplication];app.networkActivityIndicatorVisible = YES;效果如下: 阅读全文
posted @ 2011-06-26 14:05 fighter 阅读(1013) 评论(1) 推荐(0) 编辑