I have something like this:
But I need that the view that am setting for the titleView, doesn't has those margins on the left and right side. Something like this:
This is what am actually doing:
@property (nonatomic, strong) XHScrollMenu *scrollMenu; // where XHScrollMenu is a subclass of UIView
- (void)viewdidLoad{
_scrollMenu = [[XHScrollMenu alloc] initWithFrame:self.navigationController.navigationBar.frame];
_scrollMenu.backgroundColor = [UIColor clearColor];
_scrollMenu.delegate = self;
_scrollMenu.selectedIndex = 0;
self.navigationItem.titleView =self.scrollMenu;
}
I tried giving the view a with of 320, but I got the same result. I read in other post, that maybe a subclass make the trick, but don't know how to implement that solution...
How can I make the title view use the entire width?