I am using a tableview to display a message and i used the code below
UIView *chatView = [self bubbleView:[NSString stringWithFormat:@\"%@\", message] from:YES];
Make sure your table view is getting reloaded before scrolling. because after adding the data in the array, we need to reload the data to populate the TableView cell.
Seems to me that your table view does not have any rows or sections in yet. Two possibilities come to my mind.
numberOfRowsInSection
delegate and numberOfSectionsInTableView
so that they are not set to 0.tableview
has not yet finished loading the data.Do share your findings, so I might be able to help out further if needed.
I got this problem when my tableView delegate and dataSource was mapped to another view controller. Make sure you haven't done the same.