【问题标题】:How to get "location" UIToolbar button?如何获取“位置”UIToolbar 按钮?
【发布时间】:2010-12-14 00:01:45
【问题描述】:

我希望添加一个类似于 Apple 地图应用中的“定位”按钮。

^There

我查看了带边框按钮的选项,但没有列出。如何添加其中之一?

提前致谢。

【问题讨论】:

    标签: iphone objective-c uibutton uitoolbar cllocationmanager


    【解决方案1】:

    你必须自己创建它。

    比如使用UIBarButtonItem这个方法:

    - (id)initWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-27
      • 2014-04-30
      • 1970-01-01
      • 2020-02-08
      相关资源
      最近更新 更多