« first day (1083 days earlier)      last day (173 days later) » 

7:23 AM
CGRect grabRect = CGRectMake(92,181,225,315);

//for retina displays
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
UIGraphicsBeginImageContextWithOptions(grabRect.size, NO, [UIScreen mainScreen].scale);
} else {
UIGraphicsBeginImageContext(grabRect.size);
}
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextTranslateCTM(ctx, -grabRect.origin.x, -grabRect.origin.y);
[self.CropViewBg.layer renderInContext:ctx];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
 
1 message moved from IOS Developer Family
 
 
5 hours later…
12:06 PM
'- (IBAction)facebookAuthenticationAction:(id)sender {
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
if (![UIApplication.sharedApplication canOpenURL:[NSURL URLWithString:@"fb://"]])
{
login.loginBehavior = FBSDKLoginBehaviorWeb;
}
dispatch_async(dispatch_get_main_queue(), ^{

[login logInWithReadPermissions:@[@"public_profile", @"email", @"user_friends"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error) {
// Process error
} else if (result.isCancelled) {
 
1 message moved from IOS Developer Family
 

« first day (1083 days earlier)      last day (173 days later) »