iOS 7 UIBarButton back button arrow color

后端 未结 17 1981
情话喂你
情话喂你 2020-12-04 06:30

I\'m trying to change the back button arrow

\"enter

I\'m currently using the

17条回答
  •  独厮守ぢ
    2020-12-04 06:35

    It is possible to change only arrow's color (not back button title's color) on this way:

    [[self.navigationController.navigationBar.subviews lastObject] setTintColor:[UIColor blackColor]];
    

    Navigation bar contains subview of _UINavigationBarBackIndicatorView type (last item in subviews array) which represents arrow.

    Result is navigation bar with different colors of back button arrow and back button title

提交回复
热议问题