請考慮下面的代碼: override var keyCommands: [UIKeyCommand]? {
var commands:[UIKeyCommand] = []
let numbers = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L"
我刪除@UIApplicationMain中的AppDelegate.swift並寫下如下的main.swift,但程序仍然無法啓動keyPressed函數。但是每個keydown都會執行print("send event2")。 如何啓動keyPressed函數?這個程序有問題嗎? import UIKit
import Foundation
class TApplication: UIA