导航栏弹出跟新几篇文章的效果

来源:互联网 发布:吊带承重数据 编辑:程序博客网 时间:2024/05/29 10:12

       [UIViewanimateWithDuration:0.5animations:^{

            

            self.addArticalsView.frame =CGRectMake(0,64, self.view.frame.size.width,35);

            if (self.arrModel.count != self.articalNum) {

                NSString *str = [NSStringstringWithFormat:@"%@%ld%@",@"为您推荐了",self.arrModel.count -self.articalNum,@"篇文章" ];

                self.addArticalsLabel.text = str;

            } else {

                

                self.addArticalsLabel.text =@"暂无最新文章,请稍后重试";

            }

    

        } completion:^(BOOL finished) {

            [UIViewanimateWithDuration:0.5animations:^{

                [UIViewsetAnimationDelay:1];

                self.addArticalsView.frame =CGRectMake(0,29, self.view.frame.size.width,35);

               

                /* 新数据完成后允许滑动 */

                self.tableView.scrollEnabled =YES;


            }];

        }];


0 0
原创粉丝点击