星五博客

mac app窗口跳转

NSStoryboard *story = [NSStoryboardstoryboardWithName:@"Main"bundle:[NSBundlemainBundle]];
NSViewController *myView = [story instantiateControllerWithIdentifier:@"dAbout"];
//以Sheet形式弹出窗口
//[self presentViewControllerAsSheet:myView];
//以模式窗口形式弹出窗口
[selfpresentViewControllerAsModalWindow:myView];


IOS