We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm using RxPickerViewAttributedStringAdapter to set up a UIPickerView:
let adapter = RxPickerViewAttributedStringAdapter<[String]>( components: [], numberOfComponents: { _,_,_ in 1 }, numberOfRowsInComponent: { (_,_, items,_) -> Int in return items.count }, attributedTitleForRow: { (_,_, items, row,_) -> NSAttributedString? in return NSAttributedString(string: "\(items[row].firstUppercased)", attributes: [NSAttributedString.Key.foregroundColor: UIColor.black]) }) Observable.of(["apple", "lemon"]).bind(to: picker.rx.items(adapter: adapter)).disposed(by: disposeBag)
But when I use picker.rx.setDelegate(self).disposed(by: disposeBag) attributedTitleForRow is ignored
picker.rx.setDelegate(self).disposed(by: disposeBag)
How can I solve this???
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm using RxPickerViewAttributedStringAdapter to set up a UIPickerView:
But when I use
picker.rx.setDelegate(self).disposed(by: disposeBag)
attributedTitleForRow is ignoredHow can I solve this???
Thanks!
The text was updated successfully, but these errors were encountered: