We are facing issue of image stretching on right UIBarButton on iOS11. till iOS 10 it was working fine. we use below code:
[rightItem setBackgroundImage:[UIImage imageNamed:IMAGE_DISABLED]
forState:UIControlStateDisabled
barMetrics:UIBarMetricsDefault];
[rightItem setBackgroundImage:[UIImage imageNamed:IMAGE_ENABLED]
forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
This code is being used in entire app and we just need to make minimal changes in appearance or base view controller.
Please help.
Image used for background is below:
Output: