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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -