AMScrollingNavbar
AMScrollingNavbar copied to clipboard
How to add custom buttons ?
Hello, thanks for publishing a great component. It seems I don't have a way to put custom buttons for both left & right side. Would it be possible to add custom buttons? Thanks in advance.
Hi @wirakoon78 It should be possible. Can you post the code you are using?
How to add rightBarButton into amScrollingNavbar
[[self navigationItem] setLeftBarButtonItems:@[[[UIBarButtonItem alloc] initWithTitle:@"table" style:UIBarButtonItemStylePlain target:self action:@selector(pressVC)]]];
[[self navigationItem] setRightBarButtonItems:@[[[UIBarButtonItem alloc] initWithTitle:@"info" style:UIBarButtonItemStylePlain target:self action:@selector(press)]]];
CLOSEND @andreamazz