如何将[TencentOAuth类]更改为swift
我是ios新手,我不知道object-c,所以如何将如何将[TencentOAuth类]更改为swift,swift,Swift,我是ios新手,我不知道object-c,所以如何将[className class]更改为swift 代码是这样的 [ShareSDK connectQZoneWithAppKey:@“100371282” appSecret:@“aed9b0303e3ed1e27bae87c33761161d” QQAPI接口ECLS:[QQAPI接口类] tencentOAuthCls:[TencentOAuth类]]我认为以下方法应该有效: className.self 例如: String.self
[className class]
更改为swift
代码是这样的
[ShareSDK connectQZoneWithAppKey:@“100371282”
appSecret:@“aed9b0303e3ed1e27bae87c33761161d”
QQAPI接口ECLS:[QQAPI接口类]
tencentOAuthCls:[TencentOAuth类]]代码>我认为以下方法应该有效:
className.self
例如:
String.self //returns String.Type
它将成为TencentOAuth.self(NSObject)NSObject应该是what@user3933218:只需TencentOAuth.self
。没有括号。