Skip to content

Commit

Permalink
Tweet alert
Browse files Browse the repository at this point in the history
  • Loading branch information
MHaroonBaig committed Dec 3, 2014
1 parent 257e762 commit 5cc03f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file not shown.
7 changes: 5 additions & 2 deletions Picker/DoneViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class DoneViewController: UIViewController, UIAlertViewDelegate{

alert.addButton("Tweet it") {
let myHashtag = "\n#Beautify"
// println("Text value: \(txt.text)")

let accountStore = ACAccountStore()
let accountType = accountStore.accountTypeWithAccountTypeIdentifier(ACAccountTypeIdentifierTwitter)
accountStore.requestAccessToAccountsWithType(accountType, options: nil){
Expand All @@ -121,8 +121,11 @@ class DoneViewController: UIViewController, UIAlertViewDelegate{
self.tweetSuccess = false
})
}
}
}
}
var alert = SweetAlert()
alert.setColor(self.alertButtonColor)
alert.showAlert("Thank You", subTitle: "Your tweet has been sent successfully", style: AlertStyle.Success, buttonTitle: "Ok", buttonColor: self.alertButtonColor, action: nil)
}

alert.showEdit("Tweet It", subTitle:"Spread the word if you like this app")
Expand Down

0 comments on commit 5cc03f8

Please sign in to comment.