ios - Extending UINavigationBar clickable area -



ios - Extending UINavigationBar clickable area -

i created custom uinavigationbar adds custom view navigation bar has functionality isn't provided origin uinavigationbar

as part of ui i'm adding uibutton twice height of original uinavigationbar

this part of .swift file definition

class customnavigationbar: uinavigationbar { // function called each init of class func setup(){ //create button, twice height of original navigation bar allow btn = uibutton.buttonwithtype(uibuttontype.system) uibutton b.settitle("click me", forstate: uicontrolstate.normal) btn.frame = cgrect(0,0,self.frame.width,self.frame.height*2) addsubview(btn) } }

now, problem higher half part of button clickable, , bottom part isn't (becuase not within frame of original navigation bar

my question - possible extend interactive area of navigation bar?

ios swift uinavigationbar

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -