[self.view addSubview:emptyAlertView];
self.tabBarController.tabBar.hidden = YES;
虽然tabBar隐藏了,但是还是不能点击,则可以把要显示的试图添加到window
[[UIApplication sharedApplication].keyWindow addSubview:emptyAlertView];
当跳到其他页面的时候,再移除
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
//如果弹框存在,则移除
if (self.emptyAlertView != nil) {
[self deleteMessageAlertView:self.emptyAlertView];
self.emptyAlertView = nil;
}
}