报错 :error: multiple inheritance from classes 'NSObject' and 'TKEduClassManager'
import { UTSiOS } from "DCloudUTSFoundation"
import "ToastSwiftFramework"
import { TKEduClassManager } from "TKUISDK"
// import "TKUISDK"
import { DispatchQueue } from 'Dispatch';
class TestClass implements TKEduClassManager {
open() {
console.log("打开 了")
}
}
export function showToast() : boolean {
const locTest = new TestClass()
locTest.open()
// uts方法默认会在子线程中执行,涉及 UI 操作必须在主线程中运行,通过 DispatchQueue.main.async 方法可将代码在主线程中运行
DispatchQueue.main.async(execute = () : void => {
// 在当前显示的控制器view上显示 toast 弹窗
UTSiOS.getCurrentViewController().view.makeToast("这是一2123息3")
})
return true
}
1 个回复
9***@qq.com (作者)
解决了