Created
March 17, 2016 01:43
-
-
Save andrewdolce/cb7e066eba789b2dd9ed to your computer and use it in GitHub Desktop.
Social Tunes Sharer Code Sample: Using the FancyButton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Paul's code | |
@IBOutlet weak var fancyButton: FancyButton! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let twitter = FancySubButton(image: UIImage.fancy_twitter()) { | |
// Do the sharing here | |
} | |
let facebook = FancySubButton(image: UIImage.fancy_facebook()) { | |
// Do the sharing here | |
} | |
let google = FancySubButton(image: UIImage.fancy_google()){ | |
// Do the sharing here | |
} | |
fancyButton.addSubButton(twitter) | |
fancyButton.addSubButton(google) | |
fancyButton.addSubButton(facebook) | |
fancyButton.title = "SHARE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment