在初始化直接设置tableview的backgroundView
self.emptyView = [[YFDEmptyView alloc] initWithBGciew] ;
self.myTableView.backgroundView = self.emptyView;
自定义YFDEmptyView,绘制空数据的ui,并添加刷新数据-(void)showEmptyView:(id)listView dataArrCount:(NSInteger)count; (listView:tableview或colloctionview)根据传过来的count判断空view是否要隐藏