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
ACAccountStore *store = [[ACAccountStore alloc] init]; | |
ACAccountType *facebookAccountType = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; | |
NSDictionary *FacebookOptions = @{ACFacebookAppIdKey: @"XXXXXXXXXX",ACFacebookPermissionsKey: @[@"email"],ACFacebookAudienceKey:ACFacebookAudienceEveryone}; | |
[store requestAccessToAccountsWithType:facebookAccountType options:FacebookOptions completion:^(BOOL granted, NSError *error) { | |
if (granted) | |
{ | |
NSArray *accounts = [store accountsWithAccountType:facebookAccountType]; | |
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
# Mac OS X | |
*.DS_Store | |
# Xcode | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 | |
*.perspectivev3 | |
*.xcuserstate | |
project.xcworkspace/ |
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
CALayer *viewLayer = UIVIEW.layer; | |
CAGradientLayer *gradientLayerView = [[CAGradientLayer alloc] init]; | |
[gradientLayerView setFrame:[UIVIEW frame]]; | |
[gradientLayerView setPosition:CGPointMake(UIVIEW.frame.size.width / 2, UIVIEW.frame.size.height / 2)]; | |
[gradientLayerView setMasksToBounds:NO]; | |
[gradientLayerView setColors:[NSArray arrayWithObjects: | |
(id)[[UIColor colorWithWhite:0.0 alpha:1.0] CGColor], | |
(id)[[UIColor colorWithWhite:0.0 alpha:0.0] CGColor], nil]]; | |
[gradientLayerView setStartPoint:CGPointMake(0.5, 0.92)]; |
NewerOlder