【发布时间】:2012-01-03 18:35:59
【问题描述】:
我在 XCode 中遇到错误:
发现多个名为“setEnabled”的方法的结果、参数类型或属性不匹配
我在 AppDelegate.m 中使用以下代码:
#import "BluetoothManager.h"
Class BluetoothManager = objc_getClass( "BluetoothManager" ) ;
id btCont = [BluetoothManager sharedInstance] ;
[btCont setEnabled:!currentState] ;
【问题讨论】:
-
为什么要这样做?
-
我不知道 - 我刚刚在 Stack 上找到了一些代码,据说可以让我做我需要做的事情。不幸的是,我不太擅长使用 XCode 进行编程。
标签: objective-c ios xcode ios4 ios5