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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -