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
Post a Comment