if ([self.tableView respondsToSelector:@selector(setSectionIndexColor:)]) {
_tableView.sectionIndexBackgroundColor = [UIColor clearColor];
_tableView.sectionIndexTrackingBackgroundColor = [UIColor clearColor];
}
2. 动态改变talbeviewheardview的高度 改变tableHeaderView高度
- (void)clickOpenSubTitle:(BOOL)isOpen
{
CGFloat height;
if (isOpen) {
height = 500;
}else {
height = 480;
}
CGRect frame = self.tableView.tableHeaderView.frame;
frame.size.height = height;
UIView *view = self.tableView. tableHeaderView;
view.frame = frame;
self.tableView.tableHeaderView = view;
}
3.模拟器启动慢的解决方法
终端命令:
sudo sysctl -w kern.timer.coalescing_enabled=0
4.Sorry, that page doesn't exist! 新浪微博api调用失败
https://api.weibo.com/2/users/show.json&uid=
https://api.weibo.com/2/users/show.json?&uid=
就是URL问题 注意看了