I want to use a UITableView as a single selection in my own ViewController, now I can display it but fail to fill the cell or get wrong on how to fill the cell's textlabel. Any suggestion? ...
Implement the protocols for UITableViewDataSource
, UITableViewDelegate
in .h
or .m
then connect the tableview with the first responder -datasource
and -delegate
in interface builder and support the protocol required classes in your .m
.
For datasource it is: cellForRowAtIndexPath
and numbersOfRowsInSection
.
Set your cell.textlabel.text
in your cellForRowAtIndexPath
method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With