6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Quick Helpを活用する

6
Last updated at Posted at 2014-04-27

xcodeで開発していて右側のユーティリティパネルにある Quick Helpって何の役に立つの、という話。
スクリーンショット 2014-04-27 20.46.26.png

簡単な結論としては、公開メソッドのヘッダファイルに javadoc 形式で説明を書いておくと、そのメソッドを呼び出しているコードの編集中に Quick Helpに表示されますよ、ということ。

たとえば AppControllerクラスに helloメソッドを用意しているとき、 AppController.hのメソッド宣言部にこんな風に書く
スクリーンショット 2014-04-27 21.08.34.png

で、このメソッドを他のところから呼ぼうとする
スクリーンショット 2014-04-27 20.46.17.png

すると Quick Helpにさっき書いた内容が表示されるようになる。

スクリーンショット 2014-04-27 21.08.18.png

参考: http://stackoverflow.com/questions/4286728/create-quick-help-entry-in-xcode

stackoverflowにかかれているように Code Snippetとして貼り付けできるようにしておくと便利。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?