摘要: I am currently working on perfecting my new AppReviews application. It sure coming along nicely but I ran into some trouble.Because I am pulling a lot of data from the web, I wanted to update a progress bar when data arrives and show the user some progress. Of course you can normally do this by putt 阅读全文
posted @ 2012-07-04 19:16 ValeTu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: if([path hasSuffix:@".txt"]){ NSString *body = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil]; if(!body){ //gb2312编码后再尝试打开 NSStringEncoding enc =CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000); body = [NSString stringWithContentsOfU 阅读全文
posted @ 2012-07-04 11:42 ValeTu 阅读(789) 评论(0) 推荐(0) 编辑