我已经应用了一个代码来向 uibarbuttonitem 添加一个 uibutton,问题是按钮超出了框架
代码是
a1 = [UIButton buttonWithType:UIButtonTypeCustom];
[a1 setFrame:CGRectMake(0.0f, 0.0f, 65.0f, 63.0f)];
[a1 addTarget:self.slideMenuController action:@selector(toggleMenu) forControlEvents:UIControlEventTouchUpInside];
[a1 setImage:[UIImage imageNamed:@"menu-enable-bt.png"] forState:UIControlStateNormal];
UIView *view =[[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 65.0,63.0) ];
[view addSubview:a1];
menuButton = [[UIBarButtonItem alloc] initWithCustomView:view];
rootViewController.navigationItem.leftBarButtonItem = menuButton;
我不知道怎么了