I was wondering if Apple provides standard controls for the up/down arrow keys for the toolbar? All the other familiar buttons are present in Interface Builder, but not the arrow keys.
Is there a way to show them programmatically?
There is no public built-in control to display such a button. You can easily enough create your own, though, with a UISegmentedControl and momentary
set to YES (put it in the toolbar using [[UIBarButtonItem alloc] initWithCustomView:...]
, of course).
You can probably use the Unicode characters U+25B2 for ▲ and U+25BC for ▼, or you can use appropriate images.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With