我在項(xiàng)目中遇到了1次進(jìn)入頁面刷新tableview 沒有問題,然后我點(diǎn)擊改變數(shù)據(jù)源后刷新,
tableview reloaddata 只走
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section??
和
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
不走
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
的問題,網(wǎng)上找了很久方法,都沒解決這個(gè)問題。最后我吧tableview不用懶加載就行了。不知道是為什么,但是先記錄在這里。