By the time viewDidLoad
is called, the view is, as the method name suggests, already loaded. So you can't stop the view from loading at that point.
From the little bit of code you show, it looks like you could just call your isLicenseValid
method on your view controller before you try to display it, since it's the act of trying to display it that will cause it to load its views.