के अलावा अन्य विधि द्वारा UINavigationController के rootViewController को सेट करें initWithRootViewController
के अलावा किसी अन्य विधि से rootViewController
UINavigationController
कैसे सेट करें?initWithRootViewController
मैं अपने नेविगेशन नियंत्रक के लिए एक कस्टम टूलबार वितरित करने के लिए initWithNavigationBarClass:toolbarClass:
का उपयोग करना चाहता हूं, इसलिए मुझे नहीं लगता कि मैं initWithRootViewController
का उपयोग कर सकता हूं।
एक दृष्टिकोण मैं बस की खोज की है है: [navigationController setViewControllers [ NSArray arrayWithObject: (नियंत्रक को देखने के लिए सूचक जो मूल दृश्य नियंत्रक होना चाहिए)]]; क्या यह सबसे अच्छा तरीका है? मुझे लगता है कि आपको इसे केवल FinishLaunching प्रतिनिधि विधि पर AppDelegate फ़ाइल में कॉल करना चाहिए, क्योंकि यह – drc