OpenGL'de iPhone için küçük bir oyun yapıyorum. Uygulamamdaki durum çubuğunu kaldırma
İlk çalıştığım[[UIApplication sharedApplication] setStatusBarHidden:YES];
writting tarafından "durum çubuğu" kaldırıldı, ama benim uygulama çalışmayacak başladığında sadece durum çubuğunu kaldırıldı. Ardından, proje çubuğumu değiştirdim. Sorun şu ki, durum çubuğunun eskiden olduğu bölge hariç, ekranın herhangi bir bölümünde dokunulmadan okuma yapıyorum.
// 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 {
//
}
Ben çubuğunu gizleme yeterli olmadığını tahmin ve kaldırılması gerekir, ama nasıl yapabilirim? Veya başka bir çözüm var mı?
Aynı sorunu yaşıyorum. Bu simülatörde ve cihazda olur - iPhone 3GS, OS 3.1.3. – Axeva