To run the example project, clone the repo, and run pod install
from the Example directory first.
N/A
iToolbar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'iToolbar'
And execute this command in your project folder:
pod install
See the sample project iToolbar in 'Exemple' directory.
#import <iToolbar.h>
// Initialization of the iToolbar
_toolbar = [[iToolbar alloc] init];
// set the parent NavigationBar
[_toolbar setParentNavbar:(iNavigationBar*)self.navigationController.navigationBar];
// Set the scrolview to adjust when iToolbar is shown
[_toolbar setScollView:self.tableView];
UIBarButtonItem *button1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction
target:self
action:@selector(click:)];
[...]
_toolbar.items = @[button1, ...];
UIView *contentView = [[UIView alloc] init];
[contentView setBackgroundColor:UIColor.brownColor];
[_toolbar setContentView:contentView];
[_toolbar show:true]; // true for animated
[_toolbar hide:false]; // false to hide without animation
ericpinet, [email protected]
iToolbar is available under the MIT license. See the LICENSE file for more info.