[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:]

后端 未结 3 1858
滥情空心
滥情空心 2021-02-07 11:27

I am using a tableview to display a message and i used the code below

UIView *chatView = [self bubbleView:[NSString stringWithFormat:@\"%@\", message] from:YES];         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 11:46

    Seems to me that your table view does not have any rows or sections in yet. Two possibilities come to my mind.

    1. Check your numberOfRowsInSection delegate and numberOfSectionsInTableView so that they are not set to 0.
    2. Its possible that the tableview has not yet finished loading the data.

    Do share your findings, so I might be able to help out further if needed.

提交回复
热议问题