Skip to content

Instantly share code, notes, and snippets.

@idStar
idStar / UWFacebookService.m
Created August 30, 2012 16:47
Facebook Utility class to determine if logged in or not
#import "UWFacebookService.h"
@implementation UWFacebookService
// Static
static const int ddLogLevel = LOG_LEVEL_DEBUG;
// Strong
@synthesize facebookGraphUser = _facebookGraphUser;
@idStar
idStar / ReachabilityExample.m
Created May 1, 2012 13:59
Reachability for iOS5.x with ARC, sample usage using tonymillion fork
#pragma mark - Reachability
/**
* This kicks off a check for our website's reachability in the context of needing it to display, or alert the user
* of error, just once. That's why we stop the notifier in both reachable and unreachable callback block handlers.
* We're not looking for ongoing callbacks through the life of the application; we just want to know the one time.
*
* This is meant for an iPhone app only, hence, no explicit WWAN setting.
*
* CREDIT