摘要:
UIRefreshControl *refresh = [[UIRefreshControl alloc] init]; //这里控制器集成UITableViewController所以是self.tableView [self.tableView addSubview:refresh]; /** 阅读全文
摘要:
CGFloat headimageX = self.view.frame.size.width * 0.2; CGFloat headimageY = self.view.frame.size.height * 0.25; CGFloat headimageW = self.view.frame.s 阅读全文
摘要:
//tabbarItem正常状态的属性 NSMutableDictionary *nor = [NSMutableDictionary dictionary]; nor[NSForegroundColorAttributeName] = [UIColor redColor]; //tabbarIte 阅读全文
摘要:
1、同步请求可以从因特网请求数据,一旦发送同步请求,程序将停止用户交互,直至服务器返回数据完成,才可以进行下一步操作, 2、异步请求不会阻塞主线程,而会建立一个新的线程来操作,用户发出异步请求后,依然可以对UI进行操作,程序可以继续运行 3、GET请求,将参数直接写在访问路径上。操作简单,不过容易被 阅读全文