Answer the question
In order to leave comments, you need to log in
Why does code in iOS only work in the didFinishLaunchingWithOptions method?
I'm using the StartApp SDK in an iOS app to display ads. Downloaded the official sample iOS app here https://github.com/StartApp-SDK/StartApp-InApp-iOS... . In the example, in the STAAppDelegate class, in the didFinishLaunchingWithOptions method, there is code for displaying ads:
STAStartAppSDK* sdk = [STAStartAppSDK sharedInstance];
[sdk SDKInitialize:@"103738633" andAppID:@"203184123"];
[sdk showSplashAd];
Answer the question
In order to leave comments, you need to log in
Because the iOS application has all the delegates here! And the late finish is the beginning of the life cycle of the application, it is launched by the main!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question