摘要:
chflags nohidden ~/Library/ 阅读全文
摘要:
1、创建一个NSURLConnection对象:NSURL*url=[NSURLURLWithString:@"http://119.147.106.249/gdown_group11/M00/3F/15/d5Nq-UxBq88AAAAAAUn8QBO4rlY4306605/01_01_Android%E5%B9%B3%E5%8F%B0%E4%B8%80%E6%97%A5%E6%B8%B8.mp4?k=-4hoIXm9CXQ_Zo79EQprcQ&t=1346820047&u=3662410469-66934941-bei9apjt&s=307200& 阅读全文
摘要:
1. 同步发送- (NSString *)sendRequestSync{// 初始化请求, 这里是变长的, 方便扩展NSMutableURLRequest *request = [[NSMutableURLRequest alloc]init];// 设置[request setURL:[NSURL URLWithString:urlStr]];[request setHTTPMethod:@"POST"];[request setValue:hostforHTTPHeaderField:@"Host"];NSString *contentLength 阅读全文