惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
美团技术团队
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
A
About on SuperTechFans
Recent Announcements
Recent Announcements
D
Docker
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
腾讯CDC
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志

博客园 - K3

什么是URL,URI或URN? 软件设计思想的一些文章 (持续补充中) Mac OS X 上Lua的安装方法 Objective C - 4 - 下载图片并且加载到View Objective C - 3 - 实现一个计算器 Objective C - 2 - 随机数,可变字符串,字符串,SubString MySQL 存储过程,游标,临时表创建 List connected users–similar to task manager How to compose namespaces? Hide/Show running Console Calculate drive total/free/available space C# list installed softwares How to: Modify a Project System So That Projects Load in Multiple Versions of Visual Studio PS:WINRAR制作32位安装程序和64位安装程序选项 使用WINRAR来制作安装程序 impersonate a user VBScript - CUD registry key and value mysql script for dynamic running sql script XmlElement可以避免由XmlSerializer多余生成的代码
Objective C - 1 - 实现一个MessageBox.Show
K3 · 2014-05-26 · via 博客园 - K3
@interface K3ViewController : UIViewController<UIAlertViewDelegate>

@end


#import "K3ViewController.h"

@interface K3ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *resultLabel;

@end

@implementation K3ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    UIAlertView *versionMessageBox = [[UIAlertView alloc] initWithTitle:@"This is a test title"
                                                                message:@"This is a test message for displaying nothing in details."
                                                               delegate:self
                                                      cancelButtonTitle:@"Yes"
                                                      otherButtonTitles:@"No", nil];
    [versionMessageBox show];
}

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
    
    self.resultLabel.text =[NSString stringWithFormat:@"You have chosen %@",
                            [alertView buttonTitleAtIndex:buttonIndex]];
}

posted on 2014-05-26 07:34  K3  阅读(894)  评论()    收藏  举报