10
मैं वर्तमान में मेरे नेविगेशन आइटम के titleView स्थापित करने के लिए इस कोड का उपयोग:क्या आप UINavigationItem के शीर्षकदृश्य को सेट करने के लिए यूआईपीपीरेंस का उपयोग कर सकते हैं?
- (void)viewDidLoad
{ ...
UIImage *navbarTitle = [UIImage imageNamed:@"navbartitleview1"];
UIImageView *imageView = [[UIImageView alloc]initWithImage:navbarTitle];
self.navigationItem.titleView =imageView;
}
वहाँ एक रास्ता है कि मैं इस कोड का उपयोग कर UIAppearance डाल सकता है?
[UINavigationItem appearance]
मान्य नहीं है।
बस, नहीं। यदि आप शीर्षलेख फ़ाइलों को देख रहे हैं, तो गुण UI_APPEARANCE_SELECTOR के साथ चिह्नित किए जाने चाहिए। UINavigationItem भी UIAppearance प्रोटोकॉल का पालन नहीं करता है। – Karl
आह, यही मुझे लगा, धन्यवाद। – djblue2009