问题描述
我有UIApplication的子类VC1
VC1
class CustomUIApplication: UIApplication {
override func sendEvent(_ event: UIEvent) {
super.sendEvent(event)
}
func stopTimer() {
}
func startTimer() {
}
}
VC2
class MyVC: ViewController {
// want to access start timer func here
}
CustomUIApplication的实例将位于main.swift中
UIApplicationMain(
CommandLine.argc,CommandLine.unsafeArgv,NSStringFromClass(CustomUIApplication.self),NSStringFromClass(AppDelegate.self)
)
任何帮助将不胜感激,谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)