|
1
|
|
2
这种View叫做HUD(Heads Up Display),一般用于显示当前状态。
https://github.com/samvermette/SVProgressHUD https://github.com/jdg/MBProgressHUD |
|
5
|
|
6
谢谢各位!自动消失用 NSTimer 实现了。
|
|
BenXJul 21, 2012
7
- (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]; } } |
|
dingtianranJul 21, 2012
8
Xcode这个提示是好像是来自notification center,似乎不是自己实现的
|