locked
Adding iOS UITableView HeaderView (not section header) RRS feed

  • Question

  • User306227 posted

    Adding iOS UITableView HeaderView (not section header)

    Monday, April 27, 2020 11:40 AM

Answers

  • User369979 posted

    Set the header view using code behind like:

    UIView headerView = new UIView(new CGRect(0, 0, MyTableView.Bounds.Width, 100));
    // Add controls on the headerView
    MyTableView.TableHeaderView = headerView;
    
    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, April 28, 2020 1:54 AM