ios - Mechanism about "did" and "will" and "should" method -


i want know when methods including key words stated in topic called.

for example:

– tableview:willselectrowatindexpath: – tableview:didselectrowatindexpath: - (bool)tableview:(nstableview *)atableview shouldselectrow:(nsinteger)rowindex 

when willselectrow method called? method mean including key words "will" "did" , "should"

similarly, there viewdidappear , viewwillappear. it's obvious when viewdidappear method called. viewwillappear 1 quite beyond me.

hope help;)

willselectrow: tells delegate specified row selected.

didselectrow: tells delegate specified row selected.

should: returns whether table view should allow selection of specified row.

it works same way viewdidappear , viewwillappear.

viewdidappear: view has appeared.

viewwillappear: view appear.

you can learn more in apple documentation.

i hope helped !


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -