Estoy haciendo un pequeño juego para iPhone en OpenGL.Eliminando la barra de estado en mi aplicación
Primero retira la "barra de estado" por escritura
[[UIApplication sharedApplication] setStatusBarHidden:YES];
que funcionó, pero sólo retira la barra de estado cuando mi aplicación empezó a correr. Luego modifiqué mi project.plist
<key>UIStatusBarHidden</key>
<true/>
Y ahora la barra de estado nunca se muestra, como yo quería. El problema es que estoy leyendo toques sin problema en cualquier parte de la pantalla, excepto en la zona donde solía estar la barra de estado.
// 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 {
//
}
supongo que ocultar la barra no es suficiente y hay que sacarlo, pero ¿cómo puedo hacerlo?, O hay otra solución?
Estoy teniendo el mismo problema. Sucede en el simulador y en el dispositivo: iPhone 3GS, OS 3.1.3. – Axeva