search

Home  >  Q&A  >  body text

ios - uitableviewcell row height不生效

居然只有这么大

阿神阿神2889 days ago397

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:37:49

    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

    return 146
    }

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:37:49

    Regarding the row height of the cell, there are 4 ways to set it:
    1. Use the rowHeight attribute:
    2. Use the proxy method:
    3. Use self-sizing#🎜🎜 #4. Use code calculation

    For specific implementation, please refer to this blog, which specifically introduces the setting of cell row height. http://www.hcios.com/archives/464

    reply
    0
  • Cancelreply