31. The "Crash-Free Users" view from the mobile
analytics tool, Answers by Crashlytics, allowed
the team to quickly determine the severity of
any particular issue and easily triage the most
pressing crashes. ”
“
- Citymapper
56. // Jack’s first tweet
let tweet_id = “20"
Twitter.sharedInstance().APIClient
.loadTweetWithID(tweet_id) {
(tweet: TWTRTweet!, error: NSError!) in
// create a tweet view for this tweet
let tweetView = TWTRTweetView(tweet: tweet)
// add to the current view
self.view.addSubview(tweetView)
}
TWEET EMBEDS
57. TWEET EMBEDS
// set the theme to dark
tweetView.theme = TWTRTweetViewThemeDark;
// Jack’s first tweet
let
Twitter.sharedInstance().APIClient
.loadTweetWithID(
(tweet:
//
// add to the current view
}
58. COMPOSE
let composer = TWTRComposer()
composer.setText("just setting up my fabric")
composer.showWithCompletion { (result) -> Void in
if (result == TWTRComposerResult.Cancelled) {
// User canceled
} else {
// Tweet will be sent asynchronously
}
}
65. let button = DGTAuthenticateButton {
authenticationCompletion: (session, error) in
// check to see if the session is valid
if (session != nil) {
// unique, stable user id
println(session.userID) // 2834242790
// the user’s verified phone number
println(session.phoneNumber) // +15558948837
}
}
DIGITS