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

推荐订阅源

博客园_首页
C
Check Point Blog
B
Blog RSS Feed
G
Google Developers Blog
H
Help Net Security
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Recent Announcements
Recent Announcements
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
小众软件
小众软件
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
T
Tailwind CSS Blog
J
Java Code Geeks
MyScale Blog
MyScale Blog
雷峰网
雷峰网
有赞技术团队
有赞技术团队
博客园 - 聂微东

博客园 - 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)  评论()    收藏  举报