基本上,这就是我单击左侧菜单按钮时发生的情况。
http://i.stack.imgur.com/g7uq6.png
我希望它出现在状态栏下而不是重叠。
这是代码:
主视图控制器.m
-(void)menuBarButtonItemClick{
mJUserAccountMenuViewController = nil;
mJUserAccountMenuViewController = [[MJUserAccountMenuViewController alloc] initWithNibName:@"MJUserAccountMenuViewController" bundle:nil];
mJUserAccountMenuViewController.delegate = self;
[self presentPopupViewController:mJUserAccountMenuViewController animationType:MJPopupViewAnimationSlideLeftRight];
}
mJUSerAccountMenuViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
leftMenuArrayy = [StaticDataCollection getSharedInstance].accountMenuArray;
backTOHomelabl.font = FONT_APP_DEFAULT_FONT;
backTOHomelabl.textColor = COLOR_WHITE_COLOR;
if (IS_IPHONE_5_SCREEN) {
[self.view setFrame:CGRectMake(0, 0, 250, 568)];
} else {
[self.view setFrame:CGRectMake(0, 0, 250, 480)];
}
}