I have custom views and buttons that I added as subheadings of my UINavigationBar. Their frames are set so that they start halfway down the navigation bar and go past the normal borders of the navigation bar. I also have another subspecies, which from time to time should be displayed as a modal view, but on the iPhone. To achieve this, I set its frame to 0,0,320,480 and added it as a sub-item of the navigation bar. ALL WATCH OK, but user interaction is disabled in the view section, which is displayed below the navigation bar (i.e., 0.44,320,456).
Similar situations arise with my other objects. How to enable user interaction with these views? Is there a way to do this in the opposite way, for example, so that the view starts as a controller controller and extends up to close the navigation bar? (i.e. 0, -44,320,480)?
It seems like a simple task, but I tried everything I can think of, including turning on / off the navigation bar with / without animation, so that it gets out of the way, but there is a button that I need to show only as part of the navigation bar, and it should sit on top of the actual uinavigation pool.
Any help was appreciated.
Thanks ~ Arash
source
share