Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

首次进入照片选择时顶部导航栏返回按钮显示为英文“back” #531

Closed
pp1232 opened this issue Aug 2, 2017 · 1 comment

Comments

@pp1232
Copy link

pp1232 commented Aug 2, 2017

在第一次进入照片选择时,顶部导航的左侧返回按钮显示为英文的"back"
点击一次"back"后再次进入照片选择时才显示为中文。
调试后发现TZImagePickerController.m文件中的TZAlbumPickerController类的viewWillAppear:在第一次打开是不会进入,因此其中设置导航的返回按钮的Title的代码(如下)不会执行。

// 1.6.10 采用微信的方式,只在相册列表页定义backBarButtonItem为返回,其余的顺系统的做法
    if (self.isFirstAppear) {
        self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:[NSBundle tz_localizedStringForKey:@"Back"] style:UIBarButtonItemStylePlain target:nil action:nil];
        self.isFirstAppear = NO;
    }

目前将该代码移到TZAlbumPickerController类的viewDidLoad后,能够在首次时可以正常显示
不知道这是不是一个小小的bug

@banchichen
Copy link
Owner

你好,请参考这个issue下我的回复:#443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants