UIActionSheet与UITabBarController重叠部分冲突问题

UIActionSheet *menu = [[UIActionSheet alloc]
                               initWithTitle: @"edit"
                               delegate:self
                               cancelButtonTitle:@"Cancel"
                               destructiveButtonTitle:nil
                               otherButtonTitles:@"title1",@"title11",@"title111", nil];
        [menu showInView:self.view];


这样的话,如果界面有UITabBarController,你会发现,他们重叠的部分失效了..那么我们稍微改一下下


[menu showInView:self.view.window];

这样....哈哈,大功告成...OK了

你可能感兴趣的:(UIActionSheet与UITabBarController重叠部分冲突问题)