Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #368 from phvannor/XCode-Beta-6
Browse files Browse the repository at this point in the history
[iOS] Update Swift QS for Xcode Beta-6
  • Loading branch information
phvannor committed Aug 26, 2014
2 parents 2c4fe7f + 4fd50cd commit 8910327
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -42,7 +42,7 @@ class ToDoTableViewController: UITableViewController, ToDoItemDelegate {
result, totalCount, error in

UIApplication.sharedApplication().networkActivityIndicatorVisible = false
if error {
if error != nil {
println("Error: " + error.description)
return
}
Expand Down Expand Up @@ -87,7 +87,7 @@ class ToDoTableViewController: UITableViewController, ToDoItemDelegate {
(result, error) in

UIApplication.sharedApplication().networkActivityIndicatorVisible = false
if (error) {
if error != nil {
println("Error: " + error.description)
return
}
Expand Down Expand Up @@ -143,7 +143,7 @@ class ToDoTableViewController: UITableViewController, ToDoItemDelegate {
self.table!.insert(itemToInsert) {
(item, error) in
UIApplication.sharedApplication().networkActivityIndicatorVisible = false
if error {
if error != nil {
println("Error: " + error.description)
} else {
self.records.append(item)
Expand Down

0 comments on commit 8910327

Please sign in to comment.