Looking for xamarin.ios Answers? Try Ask4KnowledgeBase
Looking for xamarin.ios Keywords? Try Ask4Keywords

Xamarin.iOSCalculating variable row height in GetHeightForRow


Calculating row heights might be expensive and scrolling performance can suffer if you have larger amounts of data. In that scenario, override UITableViewSource.EstimatedHeight(UITableView, NSIndexPath) to quickly provide a number sufficient for rapid scrolling, e.g.,:

public override nfloat EstimatedHeight(UITableView tableView, NSIndexPath indexPath) 
    return 44.0f;