Closed Hiep-HN closed 7 years ago
@Hiep-HN Can you please share screenshot?
Dear Sir,
About this screenshot this issue: [image: Hình ảnh nội tuyến 1]
2016-10-27 19:13 GMT+07:00 Mohd Iftekhar Qurashi notifications@github.com:
@Hiep-HN https://github.com/Hiep-HN Can you please share screenshot?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hackiftekhar/IQActionSheetPickerView/issues/22#issuecomment-256624218, or mute the thread https://github.com/notifications/unsubscribe-auth/AHvmREcpLTRx8QZgzbt93QkXUBQW2taBks5q4JWHgaJpZM4KiERX .
Thanks & Best Regards, Continue live and attempt=.=
Họ và Tên:Huỳnh Ngọc Hiệp.SĐT:01222 015 585.
_Skype: huynhngochiepgivelove Mail: m mr.hiepuit@gmail.comr.hiepuit@gmail.com r.hiepuit@gmail.com FB: Love Give
Hello, While this is fixed I wanted to share a temporary (and not-too-pretty) solution for this:
UIButton *leftButton = [[[picker.subviews firstObject].subviews firstObject].subviews firstObject]; [leftButton setTitleEdgeInsets: UIEdgeInsetsMake(0.0, 10.0, 0.0, -10.0f)]; UIButton *rightButton = [[[picker.subviews firstObject].subviews lastObject].subviews firstObject]; [rightButton setTitleEdgeInsets: UIEdgeInsetsMake(0.0, -10.0, 0.0, 10.0f)];
Just change the 10.0 with whatever size you want for each side's margin.
Hope this helps!
This is now fixed in master branch.
Custom UIBarButtonItem in IQPickerView.m
//UIToolbar { _actionToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, -4, 320, 44)]; // _actionToolbar.barStyle = UIBarStyleDefault;//UIBarStyleBlackTranslucent; [_actionToolbar sizeToFit];
// UIBarButtonItem *cancelButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"キャンセル", nil) // style:UIBarButtonItemStylePlain target:self action:@selector(pickerCancelClicked:)]; [items addObject:cancelButton];
// UIBarButtonItem doneButton =[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"OK", @"") // style:UIBarButtonItemStylePlain target:self action:@selector(pickerDoneClicked:)]; UIBarButtonItem doneButton = [[UIBarButtonItem alloc] initWithCustomView:okView]; [items addObject:doneButton];