如何将[TencentOAuth类]更改为swift

如何将[TencentOAuth类]更改为swift,swift,Swift,我是ios新手,我不知道object-c,所以如何将[className class]更改为swift 代码是这样的 [ShareSDK connectQZoneWithAppKey:@“100371282” appSecret:@“aed9b0303e3ed1e27bae87c33761161d” QQAPI接口ECLS:[QQAPI接口类] tencentOAuthCls:[TencentOAuth类]]我认为以下方法应该有效: className.self 例如: String.self

我是ios新手,我不知道object-c,所以如何将
[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
。没有括号。