Darkseal / DownPicker

A lightweight DropDownList / ComboBox for iOS, written in Objective-C
MIT License
202 stars 93 forks source link

Localize "Done" button #1

Closed fmaylinch closed 9 years ago

fmaylinch commented 9 years ago

The "Done" button can't be localized (without modifying the code) because it's hardcoded to that string:

UIBarButtonItem* doneButton = [[UIBarButtonItem alloc]
                               initWithTitle:@"Done"
                               style:UIBarButtonItemStyleDone
                               target:self
                               action:@selector(doneClicked:)];
Darkseal commented 9 years ago

Hi, I added the following methods:

-(void) setToolbarDoneButtonText:(NSString*)str;
-(void) setToolbarStyle:(UIBarStyle)style;

The first one should solve your issue. Let me know!

fmaylinch commented 9 years ago

Thanks @Darkseal! Nice and easy component!

Darkseal commented 9 years ago

You're welcome! :)