In my iOS application on UIToolbar I have added "Done" custom button with image.
UIBarButtonItem *btnNextDoneDisable;
UIToolbar *navigateQuestionBar;
//*to add button
UIImage *img_done = [UIImage imageNamed:DONE_RED_BTN_PNG(appDelegate.isIphone)];
btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn setImage:img_done forState:UIControlStateNormal];
btn.frame = CGRectMake(0.0, 0.0, img_done.size.width, img_done.size.height);
[btn addTarget:self action:@selector(doneClicked) forControlEvents:UIControlEventTouchUpInside];
btnNextDoneDisable = [[UIBarButtonItem alloc] initWithCustomView:btn];
[arrButtons addObject:btnNextDoneDisable];
navigateQuestionBar.items = arrButtons;
Done button image sizes are:
80 × 30
156 × 57
But this looks disturb on iPad Pro(11.0),
What is the proper size for button?