我经历了Apple's swift tutorial,而且还学习了一些iOS知识。但是,在创建示例项目时,我遇到了本教程或文档中其他任何地方都找不到的东西。 @
是做什么的?
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
}