[ios专项]IOS控件AlertView简单程序_object c
来源:互联网 发布:mac电脑怎么切换输入法 编辑:程序博客网 时间:2024/05/22 10:49
alert 就是弹窗,但是用好了可以发挥很大作用啊,如下是一个简单到使用alert到程序:
一起学习下:
AssertViewController.h
// AssertViewController.h// Assert//// Created by poleness on 14-5-15.// Copyright (c) 2014年 ___FULLUSERNAME___. All rights reserved.//#import <UIKit/UIKit.h>@interface AssertViewController : UIViewController@end
AssertViewController.m
//// AssertViewController.m// Assert//// Created by poleness on 14-5-15.// Copyright (c) 2014年 ___FULLUSERNAME___. All rights reserved.//#import "AssertViewController.h"@interface AssertViewController ()- (IBAction)aessertName:(id)sender;@end@implementation AssertViewController- (void)viewDidLoad{ [super viewDidLoad];// Do any additional setup after loading the view, typically from a nib.}- (void)didReceiveMemoryWarning{ [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated.}- (IBAction)aessertName:(id)sender { UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@"propose marriage" message:@"Will U marry Me?" delegate:nil cancelButtonTitle:@"No" otherButtonTitles:@"okey", nil]; [alert show]; }@end
这只是简单的使用,编译后截图如下:
iOS学习ing,感谢老鱼,感谢geekhead
0 0
- [ios专项]IOS控件AlertView简单程序_object c
- IOS控件AlertView的使用
- [ios专项]一个简单的浏览网页程序-object c
- ios alertView
- iOS 简单实现alertview 定时移除
- IOS AlertView 自动消失
- ios 自定义alertview
- IOS AlertView 自动消失
- iOS AlertView、ActionSheet
- iOS自定义AlertView
- ios自定义AlertView
- iOS 仿安卓弹框 alertview
- iOS定制AlertView
- ios alertView添加输入框
- IOS AlertView动态添加按钮
- iOS开发之自定义AlertView
- ios swift Button, Label, AlertView
- iOS自定义alertView提示框
- UNIX进程之间传递文件描述符recvmsg与sendmsg
- 内部消息 微软中国云计算 内测Azure免费账号 赶紧申请 错过不再有
- BlueTooth: 蓝牙的能耗数字与电池数据
- 联想G510F1F2..功能键和FN+功能键反过来
- c#委托声明实例化与调用
- [ios专项]IOS控件AlertView简单程序_object c
- (dp背包)悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
- [LeetCode]3Sum
- js 简单实现一个时间倒计时计数器
- BlueTooth: RF射频通信
- JavaWeb入门
- ARM指令中特殊符号意义
- 浅谈,如何获取MTK CPU信息 请看我是如何做的。一步步来吧
- Java内存分配及equals和==号的详细讲解