If you want to add a UISlider to a UIToolbar, you have to wrap the UISlider as a UIBarButtomItem. The following code should help.
Continue reading iPhone – Adding UISlider to UIToolbar
Tag Archives: UIToolbar
iPhone – Aligning UIToolbar Items on Code Level
In Xcode, If you want to add items to the UIToolbar, you need to create an NSArray which stores all the items and put them to the UIToolbar using the setItems method.
If you want to align one items on the left and the another one on the right. you need to create a space item in between the two button in the array. That’s just like adding a Flexible Space Bar Button Item in Interface Builder.
Continue reading iPhone – Aligning UIToolbar Items on Code Level