मैं स्टोरीबोर्ड है कि मैं त्रुटि का सामना करना पड़ रहा के रूप में में दिखाया नीचे मेरी कोड सफलतापूर्वक क्रियान्वित किया जाता है लेकिन उनके कोई पेज शो या सिम्युलेटर में कार्रवाई का उपयोग कर रहा है केवल छवि को शुरू करने के बाद काली स्क्रीन दिखाई देते हैं।प्रोग्राम स्टोरीबोर्ड दृश्य प्रदर्शित
ClsMainPageAppDelegate.h
#import <UIKit/UIKit.h>
@interface ClsMainPageAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
ClsMainPageAppDelegate.m
#import "ClsMainPageAppDelegate.h"
#import "ClsMainPageViewController.h"
#import "ClsTermsandConditionViewController.h"
@implementation ClsMainPageAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
NSUserDefaults *fetchDefaults = [NSUserDefaults standardUserDefaults];
int message = [fetchDefaults integerForKey:@"checkvalue"];
NSLog(@"Message Hello : %i",message);
if(message == 1)
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
ClsMainPageViewController *mvc = [storyboard instantiateViewControllerWithIdentifier:@"BeIinformedPage"];
[(UINavigationController*)self.window.rootViewController pushViewController:mvc animated:NO];
NSLog(@"Launched Home Page");
}
else
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
ClsTermsandConditionViewController *mvc = [storyboard instantiateViewControllerWithIdentifier:@"termsandConditionControl"];
[(UINavigationController*)self.window.rootViewController pushViewController:mvc animated:NO];
NSLog(@"Launched Terms and Conditions Page");
}
return YES;
}
त्रुटि
यह त्रुटि मैं का सामना जब मैं प्रवेश बिंदु का चयन नहीं कर रहा हूँ में storybroad प्रारंभिक है नियंत्रण देखें एर।
2013-07-17 19:38:12.749 BeInformed[1011:c07] Failed to instantiate the default view
controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry
point is not set?
2013-07-17 19:38:16.127 BeInformed[1011:c07] Message Hello : 0
2013-07-17 19:38:18.333 BeInformed[1011:c07] Launched Terms and Conditions Page
त्रुटि
यह त्रुटि मैं का सामना जब मैं कर रहा हूँ storybroad में प्रवेश बिंदु का चयन प्रारंभिक दृश्य नियंत्रक (termsandConditionControl)
2013-07-17 19:53:19.839 BeInformed[1057:c07] Message Hello : 0
2013-07-17 19:53:26.175 BeInformed[1057:c07] - [ClsTermsandConditionViewController
pushViewController:animated:]: unrecognized selector sent to instance 0x71b2f50
2013-07-17 19:53:26.176 BeInformed[1057:c07] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '-[ClsTermsandConditionViewController
pushViewController:animated:]: unrecognized selector sent to instance 0x71b2f50'
कैसे अपने स्टोरीबोर्ड की स्थापना की है इस्तेमाल किया? एक नेविगेशन नियंत्रक प्रारंभिक नियंत्रक है? इसका रूट व्यू कंट्रोलर क्या है? – rdelmar
आप कुछ त्रुटि जांच कर सकते हैं यह देखने के लिए कि स्टोरीबोर्ड और विचार सफलतापूर्वक लौटाए गए हैं या नहीं। इसके अलावा, '(UINavigationController *) self.window.rootViewController' संदिग्ध लग रहा है और परीक्षण किया जाना चाहिए। – Jenn
मुझे समझ में नहीं आता कि मैंने स्टोरीबोर्ड कैसे स्थापित किया है और प्रारंभिक नियंत्रक नेविगेशन नियंत्रक क्या है? कृपया मुझे बताएं कि मैं रूट व्यू कंट्रोलर कैसे जान सकता हूं? इसे समझाओ और कृपया मेरी समस्या को हल करें। –