Smaller active area for custom UIBarButtonItem

后端 未结 3 1886
面向向阳花
面向向阳花 2021-02-10 01:17

I have a UINavigationBar with a custom UIBarButtonItem (which uses a UIButton as its custom view). The problem is: the active area of the custom button is much too large, if I t

3条回答
  •  一整个雨季
    2021-02-10 01:38

    I think u haven't changed the size of the custom button... Try doing this... In Interface builder select the button which u want to reduce the active area and then press "Command+3" or "tools --> Size inspector" in that reduce 'W' and 'H' values... this will make the custom button smaller and so the active area also get reduced...

    ~Raviraja

提交回复
热议问题