1

最近我在导航堆栈中推送/弹出视图控制器时遇到问题,我有一个带有后退按钮的 VC,我这样做:

UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
[backButton setImage:[UIImage imageNamed:@"back-button.png"] forState:UIControlStateNormal];
[backButton addTarget:self action:@selector(popCurrentVC:) forControlEvents:UIControlEventTouchUpInside];
backButton.frame = CGRectMake(0, 0, 67, 31);

UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:backButton];

[self.navigationItem setLeftBarButtonItem:item animated:YES];

然后我看到的是按钮在正确的位置淡入,但是在某些应用程序中,我确实看到按钮过渡就像,它不仅淡入,而且从 RHS 移动到 LHS,我需要这个效果,应该在哪里我改变以使按钮淡入以及移动?

谢谢!

4

0 回答 0