Skip to content

Latest commit

 

History

History
executable file
·
27 lines (15 loc) · 747 Bytes

README.md

File metadata and controls

executable file
·
27 lines (15 loc) · 747 Bytes

Custom UIToolbar

This is fully customizable analog of UIToolbar where you can use any toolbar background, and icons of any color.

Usage

  1. Copy CustomToolbar.h and CustomToolbar.m files to your project

  2. Use the following functions:

    • (id)initWithFrame:(CGRect)frame AndBackgroundColor:(UIColor*)bgColor;

      creates toolbar of given size with custom background color

    • (void)AddToolbarItemWithImage: (UIImage*)image Target:(id)target Selector:(SEL)selector;

      adds button to toolbar

    • (void)RemoveButtonAtIndex:(int)index;

      removes button

    • (void)ButtonAtIndex:(int)index SetEnabled:(BOOL)enabled;

      enables/disables toolbar button