domingo, 15 de diciembre de 2013

Phonegap Status Bar iOS 7

Muchos hemos tenidos problemas con la status bar con iOS 7 trabajando con Phonegap, la solución es sencilla es la siguiente:

- Buscar el archivo MainViewController.m
- Reemplazar el metodo viewWillAppear  con el siguiente código:

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
        CGRect viewBounds = [self.webView bounds];
        viewBounds.origin.y = 20;
        viewBounds.size.height = viewBounds.size.height - 20;
        self.webView.frame = viewBounds;
}
[super viewWillAppear:animated]

0 comentarios :

Publicar un comentario