update the xcode to 9.3 and I have problems with the programmable button
in Xcode 8 I have it in the following way and it works well
UIButton *btnSettingsButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)];
[btnSettingsButton setBackgroundImage:[UIImage imageNamed:@"settings.png"] forState:UIControlStateNormal];
[btnSettingsButton addTarget:self action:@selector(setttingsDashboard:) forControlEvents:UIControlEventTouchUpInside];
[btnSettingsButton setShowsTouchWhenHighlighted:YES];
UIBarButtonItem *btnSettingsItem =[[UIBarButtonItem alloc] initWithCustomView:btnSettingsButton];
screen Xcode 8 enter image description here
the image "settings.png" of the button shows me well with a height of 25 and width of 25.
but when I actulice to xcode 9 does not take the initWithFrame: CGRectMake and it comes out much bigger. "the size of the button image
screen Xcode 9.3 enter image description here
How can i fix this?