Comme vous pouvez le voir, le UINavigationBar est entièrement transparent. Seul le titre et UIBarButtonItem sont visibles. Et la barre d'état a la même couleur que la couleur d'arrière-plan de UITableView. En ce moment, j'ai fini de faire la vue de la table et la cellule a le même effet que la photo. Mais comment faire la barre de navigation et la barre d'état a aussi l'effet?Comment rendre UINavigationBar complètement transparent ou disparu comme ce seul titre et UIBarButtonItem pourrait être vu
0
A
Répondre
1
Essayez celui
self.navigationController.navigationBar.shadowImage = [UIImage new];
self.navigationController.navigationBar.translucent = YES;
self.navigationController.view.backgroundColor = [UIColor clearColor];
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
0
Essayez ceci!
[self.navigationController.navigationBar setBackgroundColor:[UIColor clearColor]];
[self.navigationController.view setBackgroundColor:[UIColor clearColor]];
[self.navigationController.navigationBar setBarTintColor:[UIColor clearColor]];
Questions connexes
- 1. comment créer un UIBarButtonItem transparent?
- 2. Rendre le titre UINavigationBar modifiable
- 3. Comment rendre UINavigationBar transparent dans IOS 8?
- 4. Rendre le titre UINavigationBar être modifiable par l'utilisateur
- 5. Rendre UIBarButtonItem transparent iOS 7/8
- 6. Comment modifier un UIBarButtonItem dans un UINavigationBar
- 7. Masquer ou désactiver UIBarButtonItem dans UINavigationBar
- 8. UIBarButtonItem persistant dans UINavigationBar?
- 9. UIBarButtonItem - Comment rendre le noir translucide?
- 10. Comment faire un UIBarButtonItem transparent et plat?
- 11. Comment rendre l'image UIBarButtonItem transparente?
- 12. UIBarButtonItem sur UINavigationBar dans UITabBarController
- 13. UINavigationBar titre
- 14. UIBarButtonItem vue personnalisée dans UINavigationBar
- 15. Rendre la barre de titre d'une fenêtre complètement transparente
- 16. UINavigationBar - Comment changer la position de UIBarButtonItem?
- 17. comment rendre java JPanel et graphics2d transparent?
- 18. Fond transparent - pas complètement transparent
- 19. Comment rendre GLSurfaceView transparent
- 20. Faire UINavigationBar d'animation transparent pendant la transition
- 21. Comment rendre ce site complètement réactif?
- 22. Arrière-plan personnalisé/fond transparent sur UIBarButtonItem?
- 23. Comment obtenir transparent UIToolbar ou UINavigationBar dans iOS9
- 24. Impossible d'ajouter UIBarButtonItem à UINavigationBar indépendant
- 25. Titre UIButton transparent
- 26. UINavigationBar navigationItem titre hauteur
- 27. UINavigationBar Personnalisé Titre Voir
- 28. une instance UIBarButtonItem dans plusieurs UINavigationBar
- 29. Comment rendre l'écran transparent?
- 30. Ajout d'un UIBarButtonItem par programme à UINavigationBar