LoginSignup
6
1

More than 5 years have passed since last update.

Objective-CからSwiftの第1引数名必須のメソッドを呼ぶ

Posted at

Obj-CからSwiftのメソッドを呼ぶ日本語の情報が少ないのでメモ

以下のような第1引数の引数名が必須のメソッドをObjective-Cから呼ぶ

func hoge(hikisu1: String, hikaku2: String) {

With + 引数名で呼び出せる(BridgingHeader追加前提)

[vc hogeWithHikisu1:@"hoge" Hikisu2:@"hoge"];

6
1
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
1