I have a three view controllers and a view.
one contains the main view, the other contains the customized navigation bar, and the third contains the view(aka subview of the third view controller).
when the app is loaded, navigationbar view will be visible along with the subview. Inside the subview I have a button that i want to place on top of the navigationbar view. Unfortunately i cannot do this straightforward using something like navigationitem.setrightbutton...or any other such methods (everything is coded, no nibs).
So what i am doing is setting my button frames y value to a negative value. This means that the button is out of the frame bounds of the subview, but it achieves what i want which is placing the button on top of the navigationbar.
Unfortunately no click events are passed to the button as it is outside the subview frame bounds...
I have tried overriding pointinside and hittest of the view but nothing is working.
I hope I have made myself clear. Any code that would solve this issue would be much appreciated.