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)downloadAndParseMenuForDate:(NSDate *)date { | |
[self parseHppleMenu: | |
[self downloadMenuForDateComponents: | |
[self componentsFromCurrentDate:date]]]; | |
} | |
- (NSDateComponents *)componentsFromCurrentDate:(NSDate *)today { | |
NSCalendar *gregorian = [[NSCalendar alloc] | |
initWithCalendarIdentifier:NSGregorianCalendar]; | |
return [gregorian components:(NSDayCalendarUnit |
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)downloadMultiAFN { | |
// Basic Activity Indicator to indicate download | |
UIActivityIndicatorView *loading = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; | |
[loading startAnimating]; | |
[self.imageView.superview addSubview:loading]; | |
loading.center = self.imageView.center; | |
// Create a request from the url, make an AFImageRequestOperation initialized with that request | |
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.picUrl]]; | |
AFImageRequestOperation *op = [[AFImageRequestOperation alloc] initWithRequest:request]; |