http://blog.csdn.net/woaifen3344/article/details/29883183
Models: UserModel.swift
Views: UserInfoCell.swift
Controllers: RootViewController.swift,DetailViewController.swift
AppDelegate.swift:
- importUIKit
- @UIApplicationMain
- classAppDelegate:UIResponder,UIApplicationDelegate{
- varwindow:UIWindow?
- funcapplication(application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:NSDictionary?)->Bool{
- self.window=UIWindow(frame:UIScreen.mainScreen().bounds)
- //
- letrootController=RootViewController(style:UITableViewStyle.Plain)
- letrootNav=UINavigationController(rootViewController:rootController)
- self.window!.rootViewController=rootNav
- self.window!.backgroundColor=UIColor.whiteColor()
- self.window!.makeKeyAndVisible()
- returntrue
- }
- }
UserModel.swift
UserInfoCell.swift:
copy
@H_404_120@
//@brief作为窗口的rootViewControllor