8
8

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 5 years have passed since last update.

【写真付きで簡単!】Xcode6でBridging-Headerを作る方法

8
Last updated at Posted at 2014-11-09

Bridging-Headerの作り方

Project Navigatorの適当なところで右クリック

howtomakebridgingheader.png

iOS -> Source -> Objective-C File を選択

Screen_Shot_2014-11-08_at_14_29_50.png

適当な名前を入れる

Screen_Shot_2014-11-08_at_14_30_16.png

Bridging-Headerを作りますか? -> YES!

Screen_Shot_2014-11-08_at_13_40_52.png

とすると、プロジェクト内にBridging-Headerができると思います。

完了

あとは、Bridging-Headerの中に、呼び出したいObjective-Cのヘッダーファイルを書けば、Swift側で使うことができます。

この手順で生成されたhoge.mは消去しても大丈夫です。

8
8
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
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?