iPhone : making UIBarButtonItem that is arrow shaped

前端 未结 6 1655
抹茶落季
抹茶落季 2020-12-07 23:36

I have a UIBarButtonItem on a navigation bar. I\'d like to make it arrow shaped. By that I mean I want it to be square except for a pointy side. Does anyone know how to do t

6条回答
  •  無奈伤痛
    2020-12-08 00:19

    You could create an UIImageView or an UIButton with the required image then use:

    [[UIBarButtonItem alloc] initWithCustomView: arrowButton];
    

    Hope this helps.

提交回复
热议问题