最新文章列表

UIAlert的宏写法

#define SHOWALERT(meg) {UIAlertView *alert=[[[UIAlertView alloc]initWithTitle:nil message:meg delegate:nil cancelButtonTitle:@"取消" otherButtonTitles: nil,nil]autorelease];[alert show];}
lizhuang 评论(0) 有835人浏览 2013-10-28 14:25

自定义UIAlertView

iPhone SDK提供的UIAlertView用以显示消息框,默认的消息框很简单,只需要提供title和message以及button按钮即可,而且默认情况下所有的text是居中对齐的。 那如果需要将文本向左对齐或者添加其他控件,例如输入框时该怎么办呢?不用担心,iPhone SDK还是很灵活的,有很多delegate消息供调用程序使用。所要做的就是在- (void)willPresentAl ...
jsntghf 评论(0) 有2312人浏览 2013-05-12 20:51

自定义很漂亮的AlertView..

 GRAlertView *alert;        alert = [[GRAlertView alloc] initWithTitle:@"Alert"                                           message:@"Be careful!"                                    ...
zjjzmw1 评论(0) 有1466人浏览 2013-03-30 16:47

iphone 弹出加载中对话框 UIAlertView

//显示加载中对话框 - (void)dialogShow { baseAlert = [[UIAlertView alloc] initWithTitle:@"Please Wait" message:@"\n\n\n" delegate:self cancelButtonTitle:@"close" othe ...
zheyiw 评论(0) 有1698人浏览 2012-09-07 18:10

iOS5中的UIAlertView

iOS5中提供了几种便利的UIAlertView,如下所示:   - (IBAction)showDefaultAlertView:(id)sender { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"DefaultStyle" ...
jsntghf 评论(0) 有2074人浏览 2012-07-30 20:36

UIAlertView的使用方法

UIAlertView类似于android中的对话框 或 AlertDialog ,但是,ios中使用起来要麻烦得多。 下面这段代码是一段典型的应用: UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@"hello" message:@"ipad ,i come"        ...
wangzhigang2 评论(0) 有959人浏览 2012-07-10 10:56

自定义UIAlertView(UITableView)

UIAlertTableView.h   #import <UIKit/UIKit.h> @class UIAlertView; @interface UIAlertTableView : UIAlertView { UIAlertView *alertView; UITableView *tableView; int tableHeight; in ...
jsntghf 评论(0) 有5071人浏览 2012-06-03 13:29

自定义UIAlertView(UIPickerView)

头文件:   #import <UIKit/UIKit.h> @interface CustomPickerView : UIAlertView <UIPickerViewDataSource, UIPickerViewDelegate> { NSArray *majorNames; NSArray *grades; UIPick ...
jsntghf 评论(0) 有4986人浏览 2012-04-27 08:58

wait_fences: failed to receive reply: 10004003奇怪的错误

今日遇到wait_fences: failed to receive reply: 10004003奇怪的错误。 上网找资料发现都有朋友遇到一样的错误: ====== 最近老是遇到这个错误,经过研究发现是由于UIAlertView显示的时候导致UITextField失去焦点,而键盘没有消失引起的。 我的伪代码是: UIAlertView show UITextField becomeFirstRes ...
bengan 评论(0) 有2731人浏览 2012-03-17 11:09

保存图片到相册

//接口中定义这个方法,然后在实现类中实现他 - (void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *) contextInfo; //实现类中实现 - (void)imageSavedToPhotosAlbum:(UI ...
yourgame 评论(1) 有2024人浏览 2011-12-22 22:27

创建没有按钮的UIAlertView

默认的UIAlertView都有一个或者多个按钮,如果你想创建没有按钮的UIAlertView,可以使用以下方法:   UIAlertView *alert; alert = [[[UIAlertView alloc] initWithTitle:@"\r\rConfiguring Preferences\rPlease Wait..." message:nil d ...
jsntghf 评论(0) 有2219人浏览 2011-12-02 14:43

弹出对话框的使用

实现方法和操作表十分类似,先在类定义的时候加上UIAlertViewDelegate,用于以后处理按钮事件。   @interface testController : UIViewController <UIAlertViewDelegate> {...}   调用方法如下   UIAlertView *alert = [[UIAlertView alloc] i ...
jsntghf 评论(0) 有3173人浏览 2011-07-24 16:33

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics