Я делаю небольшую игру для iPhone в openGL.
Сначала я удалил «строку состояния», написав
[[UIApplication sharedApplication] setStatusBarHidden:YES];
Что сработало, но удалило строку состояния только тогда, когда мое приложение начало работать. Затем я изменил свой project.plist
<key>UIStatusBarHidden</key>
<true/>
А теперь строка состояния никогда не показывается, как я и хотел. Проблема в том, что я читаю прикосновения без проблем в любой части экрана, за исключением зоны, где раньше находилась строка состояния.
// This method deals with events when one or more fingers touch the screen
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[myProject newTouch:touches withEvent:event];
[self.nextResponder touchesEnded: touches withEvent:event];
}
// This method deals with events when one or more fingers moves while touching the screen
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
[myProject movingTouch:touches withEvent:event ];
}
// This method deals with events when one or more fingers stops touching the screen
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
[myProject oldTouchEnded:touches withEvent:event ];
}
// This method deals with events when the system is interrupted ( for example an incomming call)
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
//
}
Полагаю, что скрытия панели недостаточно, и ее нужно удалить, но как я могу это сделать? Или есть другое решение?