Search code examples
iphoneobjective-cioscustom-controlsuitoolbar

Custom Toolbar With Images


I'm planning to implement a custom toolbar using my own images. Something more or less exactly like this or this. What would be required to do this. Could I just derive a control from UIView, then create another subclass to display the actual toolbar items and handle all the drawing myself in drawRect, or would it be better to make use of standard UIKit controls to handle the drawing of the images?


Solution

  • The only way to get this to work the way I wanted was to use a custom control.