清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
/** *消息背景控件label */ self.loveLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 40)]; self.loveLabel.backgroundColor=[UIColor orangeColor]; self.loveLabel.text=@"哇哦,共获取到两条好友的动态哦^_^"; self.loveLabel.textAlignment=1; self.loveLabel.font=[UIFont systemFontOfSize:15]; [self.imageView insertSubview:self.loveLabel belowSubview:self.topLabel]; /** *UIView成功显示动画 */ [UIView animateWithDuration:2 animations:^{ self.loveLabel.frame=CGRectMake(0, 40, self.view.bounds.size.width, 40); } completion:^(BOOL finished) { [UIView animateWithDuration:2 delay:1 options:UIViewAnimationOptionCurveLinear animations:^{ self.loveLabel.frame=CGRectMake(0, 0, self.view.bounds.size.width, 40); } completion:^(BOOL finished) { [self.loveLabel removeFromSuperview]; }]; }];