ios - prepareForSegue() Method -


we use prepareforsegue() method send data firstviewcontroller secondviewcontroller. however, override method. means firstviewcontroller class inherits method uiviewcontroller class.

what task of method in uiviewcontroller class ?

why don't invoke super.prepareforresult() method in override version of ?

from apple documentation

the default implementation of method nothing.

so means superclass implementation nothing , no need override method

super.prepareforreuse() 

actually template method pattern. "don't call call you". uiviewcontroller class calls method when needs , subclasses overrides , add implementation.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -