__block UIView * view;
[UIView animateWithDuration:1.0f animations:^(void){
CGFloat lblWidth = 200;// 设定toast 文本的宽度
// 设定toast view的在页面显示的位置和大小
view = [[UIView alloc]initWithFrame:CGRectMake((SCREEN_WIDTH-lblWidth)/2, SCREEN_HEIGHT - 200, lblWidth, 30)];
// 设定toast view的背景色,可以自定义给toast设定一些圆角或透明度
view.backgroundColor = [UIColor grayColor];
UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0,lblWidth, 30)];
label.text = @"这是toast显示的信息";
label.textAlignment = NSTextAlignmentCenter;
label.font = [UIFont systemFontOfSize:15.0f];
label.textColor = [UIColor whiteColor];
[view addSubview:label];
[self.view addSubview:view];
} completion:^(BOOL Finished){
[view removeFromSuperview];
}];