Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix to make compile
  • Loading branch information
John D. Pope committed Aug 14, 2014
commit 17720a23fd145168d30fee65a4902b1e9c3bad3e
4 changes: 2 additions & 2 deletions TSwfit/TSwfit/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DetailViewController : UIViewController, UIPickerViewDataSource, UIPickerV
button?.setTitle("Touch Me", forState: UIControlState.Highlighted)
button?.addTarget(self, action: "buttonAction:", forControlEvents: UIControlEvents.TouchUpInside)
button!.tag = 100
self.view.addSubview(button)
self.view.addSubview(button!)
}
else if self.title == "UIImageView"
{
Expand Down Expand Up @@ -165,7 +165,7 @@ class DetailViewController : UIViewController, UIPickerViewDataSource, UIPickerV
button?.setTitle("Show ActionSheet", forState: UIControlState.Highlighted)
button?.addTarget(self, action: "showActionSheet", forControlEvents: UIControlEvents.TouchUpInside)
button!.tag = 101
self.view.addSubview(button)
self.view.addSubview(button!)
}
else if self.title == "UIActivityIndicatorView"
{
Expand Down
6 changes: 3 additions & 3 deletions TSwfit/TSwfit/RootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RootViewController : UIViewController, UITableViewDelegate, UITableViewDat
self.tableView!.delegate = self
self.tableView!.dataSource = self
self.tableView!.registerClass(UITableViewCell.self, forCellReuseIdentifier: "Cell")
self.view?.addSubview(self.tableView)
self.view?.addSubview(self.tableView!)
}

// UITableViewDataSource Methods
Expand All @@ -40,7 +40,7 @@ class RootViewController : UIViewController, UITableViewDelegate, UITableViewDat
{
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell!
cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
cell.textLabel.text = self.items?.objectAtIndex(indexPath.row) as String
cell.textLabel.text = self.items?.objectAtIndex(indexPath.row) as AnyObject? as? String

return cell
}
Expand All @@ -51,7 +51,7 @@ class RootViewController : UIViewController, UITableViewDelegate, UITableViewDat
self.tableView!.deselectRowAtIndexPath(indexPath, animated: true)

var detailViewController = DetailViewController()
detailViewController.title = self.items?.objectAtIndex(indexPath.row) as String
detailViewController.title = self.items?.objectAtIndex(indexPath.row) as AnyObject? as? String
self.navigationController.pushViewController(detailViewController, animated:true)
}

Expand Down