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
+ (void)getUserProfiles:(void (^)(NSDictionary *))completionBlock { | |
NSOperationQueue *backgroundQueue = [[NSOperationQueue alloc] init]; | |
MFUser *currentUser = [MFUser currentUser]; | |
NSString *getUserProfile = [NSString stringWithFormat:@"%@%@", kUSER_PROFILE_API_URL, currentUser.uniqueID]; | |
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; | |
[manager GET:getUserProfile | |
parameters:nil | |
success:^(NSURLSessionDataTask *task, id responseObject) { |
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
#import <Foundation/Foundation.h> | |
#define navBarColor [UIColor colorWithRed: 45/255.0 green: 62/255.0 blue: 81/255.0 alpha: 1] | |
#define tealColor [UIColor colorWithRed: 0 green: 119.0/255.0 blue: 126.0/255.0 alpha: 1.0] | |
#define darkTealColor [UIColor colorWithRed: 0 green: 80/255.0 blue: 86/255.0 alpha: 1.0] | |
#define menuFont [UIFont fontWithName: @"NeutraText-BookSC" size: 22] | |
#define helvetica [UIFont fontWithName: @"HelveticaNeue-Bold" size: 16] | |
#define helveticaNotifications [UIFont fontWithName: @"HelveticaNeue" size: 16] | |
#define helveticaUploadScreen [UIFont fontWithName: @"HelveticaNeue-Bold" size: 18] |
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
NSMutableArray *oneImageLayout = [[NSMutableArray alloc] initWithObjects: | |
[NSValue valueWithCGRect:CGRectMake(0, 0, 155, 210)], nil]; | |
NSMutableArray *twoImageLayout = [[NSMutableArray alloc] initWithObjects: | |
[NSValue valueWithCGRect:CGRectMake(0, 0, 155, 104)], | |
[NSValue valueWithCGRect:CGRectMake(0, 105, 155, 105)], nil]; | |
NSMutableArray *threeImageLayout = [[NSMutableArray alloc] initWithObjects: | |
[NSValue valueWithCGRect:CGRectMake(0, 0, 155, 104)], | |
[NSValue valueWithCGRect:CGRectMake(0, 105, 77.5, 105)], |
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
CIImage *headerImage = [[CIImage alloc] initWithImage: self.headerImageView.image]; | |
CIFilter *blurFilter = [CIFilter filterWithName: @"CIGaussianBlur" | |
keysAndValues: kCIInputImageKey, headerImage, @"inputRadius", @(3.0), nil]; | |
CIImage *outputImage = [blurFilter outputImage]; | |
self.context = [CIContext contextWithOptions: nil]; | |
CGImageRef outImage = [self.context createCGImage:outputImage | |
fromRect: [outputImage extent]]; | |
self.headerImageView.image = [UIImage imageWithCGImage: outImage]; |
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
self.profileImageView.layer.cornerRadius = self.profileImageView.frame.size.width / 2; | |
self.profileImageView.clipsToBounds = YES; | |
self.profileImageView.layer.borderWidth = 3.0f; | |
self.profileImageView.layer.borderColor = [UIColor colorWithRed:0.0 | |
green:80.0/255.0 | |
blue:86.0/255.0 | |
alpha:1.0].CGColor; | |
self.profileName.layer.shadowColor = [[UIColor whiteColor] CGColor]; | |
self.profileName.layer.shadowRadius = 4.0f; |