I need to add info button to toolbar.
can any one help me to solve this.
Thanks in advance.
You need to create a UIButton
of type UIButtonTypeInfoLight
(or, depending on your toolbar color UIButtonTypeInfoDark
). You'd then use this button as the custom view for a UIBarButtonItem
:
UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
UIBarButtonItem *infoButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:infoButton] autorelease];
myToolbar.items = [NSArray arrayWithObjects:infoButtonItem, nil];
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