ios - tableView dataSource and delegate restrictions -
why tableview on ios needs "numberofrowsinsection" , "cellforrowatindexpath" functions run when it's datasource connected view controller?
there 2 ways how can put rows uitableviewcontroller:
variable
or static
care, static
can used when using uitableviewcontroller , not uitableview
static
means specify when write app exact rows in table, special case , used settings etc.
the more common case don't know exact rows displayed since load data internet , display data depending on loaded.
from question sounds looking static approach, in case don't need these methods, but in general avoid using static
tableview since if ever changes have work transfer it.
Comments
Post a Comment