IOS中添加按钮,点击按钮,直接退出程序
[ btn addTarget:self action:@selector(exitClick) forControlEvents: UIControlEventTouchUpInside];
//点击按钮,程序退出
- (void)exitClick
{
exit(0);
}
[ btn addTarget:self action:@selector(exitClick) forControlEvents: UIControlEventTouchUpInside];
//点击按钮,程序退出
- (void)exitClick
{
exit(0);
}
本文标题:IOS中添加按钮,点击按钮,直接退出程序
本文链接:https://www.haomeiwen.com/subject/troxdttx.html
网友评论