This file contains hidden or 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
( | |
{ | |
category = "Food/beverages"; | |
"category_list" = ( | |
{ | |
id = 188296324525457; | |
name = "Sandwich Shop"; | |
} | |
); | |
id = 69321426952; |
This file contains hidden or 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) processResponseData: (NSDictionary *) responseData { | |
// NSLog(@"%@", responseData); | |
NSArray *arrayOfLocations = [responseData objectForKey:@"data"]; | |
NSDictionary *place = [arrayOfLocations objectAtIndex:2]; | |
NSString *placeName = [place objectForKey:@"name"]; // aka Quiznos | |
NSString *category = [place objectForKey:@"category"]; // aka Food/beverages | |
NSArray *arrayOfCategoryList = [place objectForKey:@"category_list"]; |
This file contains hidden or 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) processResponseData: (NSDictionary *) resultData { | |
NSLog(@"%@", resultData); | |
// do the JSON conversion on a separate queue | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), | |
^{ | |
NSError *error = nil; | |
id JSONObject = [NSJSONSerialization JSONObjectWithData: resultData | |
options: 0 |
This file contains hidden or 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
{ | |
category = "Local business"; | |
"category_list" = ( | |
{ | |
id = 153490828039067; | |
name = "Outdoor Equipment Store"; | |
}, | |
{ | |
id = 186982054657561; | |
name = "Sports & Recreation"; |
This file contains hidden or 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)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
//Provided location | |
CLLocationCoordinate2D zoomLocation; | |
zoomLocation.latitude = 39.750655; | |
zoomLocation.longitude= -104.999127; | |
MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(zoomLocation, 1000, 1000); |
This file contains hidden or 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
UIWebView *callWebview = [[UIWebView alloc] init]; | |
NSURL *telURL = [NSURL URLWithString:@"tel:number-to-call"]; | |
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]]; |
This file contains hidden or 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 <UIKit/UIKit.h> | |
@interface SignUpViewController : UIViewController <UITextFieldDelegate> { | |
BOOL isLastTextField; | |
CGFloat adjustmentOffset; | |
CGFloat mainViewHeight; | |
CGFloat subViewHeight; | |
CGFloat keyboardY; |
This file contains hidden or 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
//in LocalModel | |
-(NSDictionary*)getUserAddress | |
{ | |
NSDictionary* user = [_userDetails objectForKey:@"user"]; | |
return [user objectForKey:@"address"]; | |
} | |
//call | |
[[LocalModel sharedInstance] getUserAddress] |
This file contains hidden or 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
@protocol PopUp2Delegate <NSObject> | |
-(void)displayPopUp2; | |
-(void)displayTutorialPopUp; | |
@end | |
@protocol AddressCreateDelegate <NSObject> | |
-(void)addressSubmitted:(NSDictionary *)address; | |
-(void)displayTutorialPopUp; | |
@end |
This file contains hidden or 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 <MessageUI/MessageUI.h> | |
#import <MessageUI/MFMailComposeViewController.h> | |
// Add the MFMail Delegate | |
@interface MailViewController : UIViewController <MFMailComposeViewControllerDelegate>{ | |
} |