iOS UI Display ViewController Setting
Provides instructions for specifying a viewController(UIViewController) that displays an UI in the iOS operating system.
Why do I need to specify a view controller that shows the UI?
If nothing is done, the SDK finds the top view controller (UIViewController) and exposes it by default.
By default, it is required when using multiple UIViewController controllers. (ex. Unreal engine)
No specific action is required if it is displayed normally without setup.
List of applicable UI lists
Login
Sign out
Change of account
System Alert
WebView
Coupon view
Promotion
Example
Set a Specific View Controller to display the UI
Set a specific View Controller to display all of UI in the SDK.
Once it is set, all of UI are displayed as a specific View Controller, hence you have to manage it is required.
iOS 예제
#import <KakaoGame/KakaoGame.h>
// Create a viewcontroller to display UI
UIViewController *viewController = [[UIViewController alloc] init];
// Setting a default view controller
[KGApplication setViewController:viewController]; |