OS3.2からUIMenuControllerの項目をカスタマイズできるようになったのをご存知でしょうか。 UIMenuControllerとは、こんな吹き出しのことです。 3.2以前でこれをカスタマイズしようと思うと、Responderチェインに割り込んでcutを捕まえて、入れ替えて、などとなかなか手の込んだことをしなければならなかったのですが、ついに3.2でこの問題から解放されます。 使い方を紹介します。 UIMenuItem 表示項目をカスタマイズするにはUIMenuItemクラスを使います。UIMenuItemのインスタンスを作って、そのNSArrayをUIMenuControllerのmenuItemsにセットするだけです。 UIMenuItemで表示するタイトルと実行するactionを指定します。 サンプル ビューをタップするとメニューが表示されるようにしたいと思います。 そ