06 2013 档案

摘要:NSFileManager和NSFileHandle(附:获取文件大小 )//file文件操作NSFileManager常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BOOL)createFileAtPath:path contents:(BOOL)data attributes:attr 向一个文件写入数据-(BOOL)removeFileAtPath: path handler: handler 删除一个文件-(BOOL)movePath: from toPath: to handler: hand... 阅读全文
posted @ 2013-06-07 13:04 lizx 阅读(312) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/sf1106/article/details/8673292ios中摄像头/相册获取图片,压缩图片,上传服务器方法总结http://amandayljaefi.blog.sohu.com/236124710.html获取iphone相册方法:方法一:ALAssetsLibraryGroupsEnumerationResultsBlock listGroupBlock =^(ALAssetsGroup *group, BOOL *stop) {if (group!=nil) {[groups addObject:group];} else {[self. 阅读全文
posted @ 2013-06-06 14:09 lizx 阅读(1048) 评论(0) 推荐(0)
摘要:NSData *imageData = [NSData dataWithContentsOfFile: imagePath];UIImage *aimage = [UIImage imageWithData: imageData]; //UIImage-> NSDataNSData *imageData = UIImagePNGRepresentation(aimae); 阅读全文
posted @ 2013-06-06 11:29 lizx 阅读(119) 评论(0) 推荐(0)
摘要:ios开发如何判断网络等问题参考资料 先转了 有空详细看 感谢原帖大神们的辛勤劳动!http://www.cocoachina.com/bbs/simple/?t54338.htmlhaoxue2011-04-15 11:06网络编程专题总结(重要)一:确认网络环境3G/WIFI二:使用NSConnection下载数据三:使用NSXMLParser解析xml文件一:确认网络环境3G/WIFI1. 添加源文件和framework开发Web等网络应用程序的时候,需要确认网络环境,连接情况等信息。如果没有处理它们,是不会通过Apple的审(我们的)查的。Apple 的 例程 Reachability 阅读全文
posted @ 2013-06-04 15:37 lizx 阅读(269) 评论(0) 推荐(0)