UITextField in UITableView cell is returning null

前端 未结 2 908
野性不改
野性不改 2021-01-15 04:23

I\'ve been banging my head against the wall on this one for quite some time now. Any input or direction is greatly appreciated.

So the goal is the create a log in fo

2条回答
  •  粉色の甜心
    2021-01-15 04:57

    Create a custom cell to place your text field, for the love of god. You shouldn't have addSubview: related code in your tableView:cellForRowAtIndexPath:; just code that allocates the cell, and configures the cell enough so that the cell itself can display things they way you want them.

    Look at the table view suite for an example of how to use custom cells. I believe 4_ and 5_ have custom cells.

提交回复
热议问题