iphone-common-codes-ccteam源代码 CCUIAlertView.m
生活随笔
收集整理的這篇文章主要介紹了
iphone-common-codes-ccteam源代码 CCUIAlertView.m
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
//
// CCUIAlertView.m
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import "CCUIAlertView.h"
@implementation UIAlertView(cc)
// 顯示消息框
+ (UIAlertView *)showAlertView:(NSString *)title
msg:(NSString *)msg
delegate:(id)delegate
okBtnTitle:(NSString *)okTitle
{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:title
message:msg
delegate:delegate
cancelButtonTitle:nil
otherButtonTitles:okTitle, nil];
[alert show];
[alert release];
return alert;
}
@end
// CCUIAlertView.m
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import "CCUIAlertView.h"
@implementation UIAlertView(cc)
// 顯示消息框
+ (UIAlertView *)showAlertView:(NSString *)title
msg:(NSString *)msg
delegate:(id)delegate
okBtnTitle:(NSString *)okTitle
{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:title
message:msg
delegate:delegate
cancelButtonTitle:nil
otherButtonTitles:okTitle, nil];
[alert show];
[alert release];
return alert;
}
@end
?
可能有更新:
googlecode鏈接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIAlertView.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIAlertView.m
?
轉(zhuǎn)載于:https://www.cnblogs.com/ccteam/archive/2012/01/06/2313959.html
總結(jié)
以上是生活随笔為你收集整理的iphone-common-codes-ccteam源代码 CCUIAlertView.m的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Oracle For Linux安装脚本
- 下一篇: symfony的安装方法