SORU
29 EYLÜL 2013, Pazar


Nasıl iOS 7 tamamen şeffaf gezinti çubuğu yapmak

Benim app UİNavigationBar tamamen şeffaf ve viewcontroller ile aynı hizada doğrudan altında olmak istiyorum. Ancak, bulabildiğim tek kod şeffaf ama şeffaf hale getirir. Bu notlar uygulamasında kullanılır çünkü iOS 7'de yapılabilir biliyorum. Sorum şu, bunu yapmak için kullanılan kod nedir?

CEVAP
11 EKİM 2013, Cuma


this answer

[self.navigationController.navigationBar setBackgroundImage:[UIImage new]
                     forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.shadowImage = [UIImage new];
self.navigationController.navigationBar.translucent = YES;
self.navigationController.view.backgroundColor = [UIColor clearColor];
self.navigationController.navigationBar.backgroundColor = [UIColor clearColor];

Josh tarafından önerilen olarak da, yorum, çubuğu varsayılan geri koymak:

[self.navigationController.navigationBar setBackgroundImage:nil
                     forBarMetrics:UIBarMetricsDefault];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • DancingIsAPassion

    DancingIsAPa

    29 AĞUSTOS 2009
  • Learn word 2013 tutorials

    Learn word 2

    5 AĞUSTOS 2014
  • Titan Lee Hai

    Titan Lee Ha

    14 Temmuz 2008