From 839287eff4d11bf645afc7d38eaec22f96386f46 Mon Sep 17 00:00:00 2001 From: dautermann Date: Fri, 6 Mar 2015 13:27:52 -0500 Subject: [PATCH] make project compatible with Swift 1.2 --- TableViewCellWithAutoLayout/AppDelegate.swift | 3 +-- .../TableViewController/TableViewController.swift | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/TableViewCellWithAutoLayout/AppDelegate.swift b/TableViewCellWithAutoLayout/AppDelegate.swift index b031fb5..4644c23 100644 --- a/TableViewCellWithAutoLayout/AppDelegate.swift +++ b/TableViewCellWithAutoLayout/AppDelegate.swift @@ -12,8 +12,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool - { + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { // Override point for customization after application launch. window = UIWindow(frame: UIScreen.mainScreen().bounds) var viewController = TableViewController(style: .Plain) diff --git a/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift b/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift index c9024fc..a84d985 100644 --- a/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift +++ b/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift @@ -13,11 +13,6 @@ class TableViewController: UITableViewController var model = Model() - override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) - { - super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) - } - override init(style: UITableViewStyle) { super.init(style: style) @@ -94,7 +89,7 @@ class TableViewController: UITableViewController model = Model() - tableView.deleteRowsAtIndexPaths(rowsToDelete, withRowAnimation: .Automatic) + tableView.deleteRowsAtIndexPaths(rowsToDelete as [AnyObject], withRowAnimation: .Automatic) } // Adds a single row to the table view