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
Post a Comment