1
Kymair 2012-07-20 20:48:51 +08:00 2
|
2
xatest 2012-07-20 20:59:06 +08:00 1
这种View叫做HUD(Heads Up Display),一般用于显示当前状态。
https://github.com/samvermette/SVProgressHUD https://github.com/jdg/MBProgressHUD |
3
chenluois OP |
5
froo 2012-07-20 21:12:16 +08:00 1
|
6
chenluois OP 谢谢各位!自动消失用 NSTimer 实现了。
|
7
BenX 2012-07-21 00:16:32 +08:00
- (void)hideViewAnimated:(BOOL)animated {
[self.timer invalidate]; if (animated) { [UIView beginAnimations:nil context:nil]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(hideViewDidStop:finished:context:)]; self.alpha = 0.0; [UIView commitAnimations]; } else { self.alpha = 0.0f; self.hidden = YES; [self removeFromSuperview]; } } |
8
dingtianran 2012-07-21 23:46:32 +08:00
Xcode这个提示是好像是来自notification center,似乎不是自己实现的
|