我正在使用这个库:EGOTableViewPullRefresh我已经把它设置得像这个例子,它的工作原理。当我开始定制出现问题的外观时。我的代码:EGOTableViewPullRefresh没有显示背景
EGORefreshTableHeaderView *view = [[EGORefreshTableHeaderView alloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.tableview.bounds.size.height, self.tableview.frame.size.width, self.tableview.bounds.size.height) arrowImageName:@"pull-refresh-arrow.png" textColor:[UIColor whiteColor] backgroundImage:[UIImage imageNamed:@"alternate-background"]];
// view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"alternate-background"]];
view.backgroundColor = [UIColor blackColor];
view.delegate = self;
[self.tableview addSubview:view];
它正确设置文本和箭头,但不是backgroundColor。我实际上尝试修改它所附带的表格,从具有清晰背景的视图中查看是否有帮助,但没有任何区别。
任何帮助将是伟大的!谢谢!