in xcode6 gold master, using objc_msgSend now throws a syntax error saying the number of arguments is wrong

后端 未结 2 767
离开以前
离开以前 2020-12-14 10:10
 id topLayoutGuideObj = objc_msgSend(viewController, @selector(myselector));

\"Too many arguments to function call, expected 0, h

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 10:34

    I have checked it out, the main problem was as @Jerry Krinock said in comment of accepted answer;

    1. Go to your project Build Settings
    2. Search for objc_msgSend
    3. Set its value to "No" instead of "Yes"

提交回复
热议问题