1

I'm working with custom navigationBarButtons so I can give them a different tint-color thant the navigation Bar.

But I can't see a way to get them to show a systemButton (Like the symbol for reloading).

I guess these are private. Does anyone of you have matching symbols/images I can use?

4

1 に答える 1

2

UIBarButtonItem をサブクラス化している場合でも、initWithBarButtonSystemItem:target:action:メソッドで初期化できるはずです。更新 (リロード) や追加などのために systemItem を渡すことができます。

カスタムの init 動作が必要な場合は、サブクラスでこのメソッドをオーバーライドすることを検討してください。スーパー実装を呼び出すことを忘れないでください。

于 2010-03-10T10:14:39.113 に答える