刚开始在 Xcode 上的不同项目(单视图,主细节,...)我总是遇到线程 1:Signal sigabrt 警告,它会停止我的 iOS 模拟器。
对于这个模拟,我从一个单视图项目开始,其中一个按钮链接到另一个单视图。没什么复杂的,即使我是 iOS 开发世界的新手。
谢谢你帮助我
Thread backtrace :
2013-06-25 18:54:39.356 App4[1313:11303] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
*** First throw call stack:
(0x1c90012 0x10cde7e 0x467f31 0x459b99 0x459c14 0x10e1705 0x152c0 0x15258 0xd6021 0xd657f 0xd56e8 0x44cef 0x44f02 0x22d4a 0x14698 0x1bebdf9 0x1bebad0 0x1c05bf5 0x1c05962 0x1c36bb6 0x1c35f44 0x1c35e1b 0x1bea7e3 0x1bea668 0x11ffc 0x1fad 0x1ed5 0x1)
libc++abi.dylib: terminate called throwing an exception
#import <UIKit/UIKit.h>
@interface CalViewController : UIViewController
@end
#import <UIKit/UIKit.h>
@interface CalAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
#import "CalViewController.h"
@interface CalViewController ()
@end
@implementation CalViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end