- Register for an API key
- Go to https://www.tumblr.com/oauth/apps and click the “Register Application” button. You’ll need an existing tumblr account to register and api application.
- Add the Tumblr SDK
https://github.com/tumblr/TMTumblrSDK
- Install using CocoaPods
Podfile in root project directory
- Podfile
- Install using CocoaPods
Podfile in root project directory
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
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
// Start Flurry session | |
Flurry.startSession("YOUR_FLURRY_API_KEY"); | |
// A basic Flurry Event | |
Flurry.logEvent("Started Application"); | |
return true; | |
} |
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
@IBOutlet weak var streamTitleLabel: UILabel! | |
@IBOutlet weak var streamDescriptionLabel: UILabel! | |
@IBOutlet weak var streamImageView: UIImageView! | |
@IBOutlet weak var streamSponsoredLabel: UILabel! | |
@IBOutlet weak var streamSponsoredImageView: UIImageView! | |
@IBOutlet weak var streamSourceLabel: UILabel! |
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
[Flurry setSessionReportsOnPauseEnabled:(BOOL)sendSessionReportsOnPause]; |
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
[Flurry setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose]; |
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
[Flurry logPageView]; |
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
[Flurry logAllPageViews:navigationController]; |
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
[Flurry logError:@"ERROR_NAME" message:@"ERROR_MESSAGE" exception:e]; |
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
[Flurry setUserID:@"USER_ID"]; |
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
[Flurry setGender:@"m"]; |
NewerOlder