// http://github.com/devinross/tapkulibrary
TKAlertCenter是一个警示框的框架。在导入之后框架后,后调用其方法
#import <Foundation/Foundation.h>
@interface TKAlertView :UIView {
CGRect messageRect;
NSString *text;
UIImage *image;
}
- (id) init;//初始化操作
- (void) setMessageText:(NSString*)str;//文字提示
- (void) setImage:(UIImage*)image;//图片提示
@end
@interface TKAlertCenter :NSObject {
NSMutableArray *alerts;
BOOL active;
TKAlertView *alertView;
}
+ (TKAlertCenter*) defaultCenter;//类方法
- (void) postAlertWithMessage:(NSString*)message image:(UIImage*)image;发送警示框(字,图)
- (void) postAlertWithMessage:(NSString *)message;//发送警示框(字)
- (void) postAlertWithMessage:(NSString *)message afterDelay:(CGFloat)delay;发送警示框(延迟几秒)
@end