[Solved] Why self.view.tag in loadview is different with others


The loadView method is not usually implemented. The system calls it in order to create your view hierarchy. At the time it’s called, your views will not exist.

Why are you implementing loadView? You probably should not be.

To quote the docs:

If you use Interface Builder to create your views and initialize the
view controller, you must not override this method.

What code are you putting in your loadView method?

1

solved Why self.view.tag in loadview is different with others