Customized back button appears on UIImagePickerController

前端 未结 3 1210
再見小時候
再見小時候 2021-01-13 02:50

I use the following code to customize the back button on the navigation bar throughout my application:

UIImage *backButton = [[UIImage imageNamed:@\"backButt         


        
3条回答
  •  温柔的废话
    2021-01-13 03:24

     [[UIBarButtonItem appearanceWhenContainedIn:[UIImagePickerController class], nil] setBackButtonBackgroundImage:[UIImage imageNamed:@"blank-button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    

    this is the correct way

提交回复
热议问题