-3

In Android there is the lifecycle callbacks for execute code in the onCreate, etc., lifecycle of an activity.

Does iOS have something similar like that?

I'm not asking about UIViewController lifecyycle. I want to know how to handle in one place all the viewdidappear, viewdidloaof, etc... of my view controllers.

danybarco
  • 308
  • 1
  • 2
  • 9
  • https://stackoverflow.com/q/5562938/4063602 – pbodsk Apr 13 '19 at 14:26
  • That does not answer my question. I think it's not duplicated by the link you indicate. My question is aimed at avoiding running the same code again and again in all UIViewController. – danybarco Apr 16 '19 at 07:50

1 Answers1

0

You should check the official documentation for this answer; here's official documentation of view controller lifecycle.

UIViewController

Rico Crescenzio
  • 3,952
  • 1
  • 14
  • 28