我正在用robovm开发一款游戏&关于ios的libgdx,如何覆盖UIViewController.viewWillAppear
?如何覆盖iOS上的UIViewController函数?
(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];
}
谢谢你们,但我在Robovm上用Java开发游戏。 –