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