我在项目中遇到了1次进入页面刷新tableview 没有问题,然后我点击改变数据源后刷新,
tableview reloaddata 只走
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
和
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
不走
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
的问题,网上找了很久方法,都没解决这个问题。最后我吧tableview不用懒加载就行了。不知道是为什么,但是先记录在这里。
网友评论