Skip to content

Instantly share code, notes, and snippets.

@ndurell
Last active January 3, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ndurell/8406451 to your computer and use it in GitHub Desktop.
Save ndurell/8406451 to your computer and use it in GitHub Desktop.
This code demonstrates how to log an action. Logging actions allows you to award your users with mPOINTs for completing tasks within your app. In this case we are logging the action "demo_action" anytime the method "myAwesomeMethod" is called.
#import "SessionM.h"
@implementation MyClass
- (void)myAwesomeMethod {
SMAction(@"demo_action")
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment