SORU
26 EYLÜL 2013, PERŞEMBE


İOS 7 Gezinti Çubuğu metin ve ok renk

Gezinti Çubuğu olmak için arka plan ayarlamak istiyorumsiyahve içindeki tüm renkleribeyaz.

Yani, bu kodu kullandım

[[UINavigationBar appearance] setTitleTextAttributes:
     [NSDictionary dictionaryWithObjectsAndKeys:
      [UIColor whiteColor],
      NSForegroundColorAttributeName,
      [UIColor whiteColor],
      NSForegroundColorAttributeName,
      [NSValue valueWithUIOffset:UIOffsetMake(0, -1)],
      NSForegroundColorAttributeName,
      [UIFont fontWithName:@"Arial-Bold" size:0.0],
      NSFontAttributeName,
      nil]];

Ama geri düğmesimetin rengi,okvedüğme çubuğuhala varsayılan varmavi renk.

enter image description here

CEVAP
26 EYLÜL 2013, PERŞEMBE


UINavigationBar özelliklerini bazı davranışları değiştiiOS 7. Görüntüyü aşağıda görebilirsiniz :

enter image description here


İki güzel linkler sizinle paylaşmak istiyorum. Daha fazla bilgi için bu bağlantıları gidebilirsiniz :

  1. iOS 7 UI Transition Guide.
  2. How to Update Your App for iOS 7.

Apple BelgeleribarTintColor diyor ki :

Bu renk ayarladığınız sürece saydam varsayılan olarak yapılır HAYIR yarı saydam özellik.

Örnek Kod :

self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
[self.navigationController.navigationBar 
 setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
self.navigationController.navigationBar.translucent = NO;

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Bart Baker

    Bart Baker

    1 Aralık 2006
  • boburnham

    boburnham

    11 Temmuz 2006
  • Majestic Casual

    Majestic Cas

    28 NİSAN 2012