(ios实战)实现类似于android 的toast控件
摘要:1实现原理创建一个自定义控件,控件中显示文本,同时设置一个动画,三秒钟后,控件的alpha为0,动画完成后,控件移出掉ViewControl2 创建PopView2.1 PopView.h 部分@interface PopView : UIView{ UILabel *_textLabel; int _queueCount;}- (void) setText:(NSString *) text;@end2.2 PopView.m#import "PopView.h"#import <QuartzCore/QuartzCore.h>@imple...
阅读全文
posted @ 2013-06-12 11:17