NSAlert 弹出警告提示窗
来源:互联网 发布:js两个数组合并去重 编辑:程序博客网 时间:2024/06/05 04:43
-(void)alertinterface:(NSString *)title1 buttonwithtitle:(NSString *)title2 messagetext:(NSString *)messagetext informativetext:(NSString *)informative
{
NSAlert *alertForNotSelectIcon = [[NSAlert alloc] init];
[alertForNotSelectIcon addButtonWithTitle:title1];
[alertForNotSelectIcon addButtonWithTitle:title2];
[alertForNotSelectIcon setMessageText:messagetext];
[alertForNotSelectIcon setInformativeText:informative];
[alertForNotSelectIcon setAlertStyle:NSWarningAlertStyle];
[alertForNotSelectIcon beginSheetModalForWindow:self.window modalDelegate:self didEndSelector:nil contextInfo:nil];
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//调用
NSString *title1 =NSLocalizedString(@"title1", nil);
NSString *title2 =NSLocalizedString(@"title2", nil);
NSString *messagetext =NSLocalizedString(@"messagetext0", nil);
NSString *informativetext =NSLocalizedString(@"informativetext1", nil);
[self alertinterface:title1 buttonwithtitle:title2 messagetext:messagetext informativetext:informativetext];
/////////////////////////////////////////////////////////////////
//Localizable.strings文件//
。。。。。。
- NSAlert 弹出警告提示窗
- NSAlert 弹出警告提示窗(新)
- COCOA之NSAlert警告提示框
- 常用的几个弹出警告、提示
- RadControl后台弹出窗口,对话框,警告提示。
- BootStrap 工具提示 弹出框 警告框
- bootstrap中dialog弹出框(警告/提示)
- servlet 提示信息弹出警告框后成功重定向
- servlet 提示信息弹出警告框后成功重定向
- jQuery模拟JS警告、确认、提示弹出对话框效果
- jQuery弹出警告对话框美化插件(警告,确认和提示)
- jQuery弹出警告对话框美化插件(警告,确认和提示)
- layer插件如何在弹出层中弹出一警告提示并关闭弹出层
- mt6735 Audio framework]音量警告提示框选择OK,重启后再增大音量希望还会弹出音量警告提示框
- bootstrap 三种提示框 (tooltip工具提示+popover弹出框+alert警告框)
- c#里用VBSCRIPT 的MSGBOX实现弹出窗口提示(而不是警告)图标
- bootstrap js插件篇——提示框、弹出框、警告框
- hadoop搭建完毕后启动hadoop弹出ssh警告提示的解决办法
- log4js日志文件库的使用
- Linux文件和目录的操作(入门)
- 网址资料
- weblogic打补丁,bsu升级10.3.6.0.12
- C++STL学习(11)STL算法(2)
- NSAlert 弹出警告提示窗
- Linux 产能工具及其使用技巧—兄弟连IT教育
- SharePoint 2013 User Profile Synchronization Service无法开启的解决方案
- lncRNA数据库和miRNA数据库
- 安卓Paint字符显示
- Python学习资源
- JDBC 1 利用Statement对数据库进行增删改查
- highcharts中绘制离散的事件点,并在图中显示中文说明内容
- linux系统swappiness swap修改