在AppDelegate中,对menu Item 拖线 实现退出应用的方法:
- (IBAction)windowShouldClose:(NSMenuItem *)sender {
[NSApp terminate:self];
}
如下图:
原文:http://www.cnblogs.com/741162830qq/p/5035447.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!