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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -