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
NSUserDefaults *waqaData = [NSUserDefaults alloc]; | |
NSString *answerAType; | |
NSString *answerBType; | |
NSString *answerCType; | |
NSString *answerDType; | |
NSString *answerEType; | |
if ([[waqaData objectForKey:@"Answer A Type"] isEqualToString:@"text"]) { | |
answerAType = @"string"; |
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
NSArray *answers = [[NSArray alloc]initWithObjects:[waqaData objectForKey:@"Answer A"], [waqaData objectForKey:@"Answer B"], [waqaData objectForKey:@"Answer C"],[waqaData objectForKey:@"Answer D"], [waqaData objectForKey:@"Answer E"], nil]; | |
NSString *answersString = [answers JSONString]; | |
NSArray *answerTypes = [[NSArray alloc]initWithObjects:answerAType, answerBType, answerCType, answerDType, answerEType, nil]; | |
NSString *answerTypesString = [answerTypes JSONString]; | |
NSURL *url = [NSURL URLWithString:@"http://api.iwaqa.com/waqa/new"]; | |
request = [ASIFormDataRequest requestWithURL:url]; | |
[request setRequestMethod:@"POST"]; |
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
( | |
{ | |
key = question; | |
value = test; | |
}, | |
{ | |
key = group; | |
}, | |
{ | |
key = answers; |
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
- (IBAction)submitButtonClicked:(id)sender { | |
CFUUIDRef uuid; | |
CFStringRef uuidStr; | |
NSString *uuidString; | |
uuid = CFUUIDCreate(NULL); | |
uuidStr = CFUUIDCreateString(NULL, uuid); | |
uuidString = [NSString stringWithFormat:@"%@", uuidStr]; | |
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
NSArray *answers = [[NSArray alloc]initWithObjects:[waqaData objectForKey:@"Answer A"], [waqaData objectForKey:@"Answer B"], [waqaData objectForKey:@"Answer C"],[waqaData objectForKey:@"Answer D"], [waqaData objectForKey:@"Answer E"], nil]; | |
NSString *answersString = [answers JSONString]; | |
NSLog(@"%@",answersString); | |
NSArray *answerTypes = [[NSArray alloc]initWithObjects:answerAType, answerBType, answerCType, answerDType, answerEType, nil]; | |
NSString *answerTypesString = [answerTypes JSONString]; | |
NSLog(@"%@",answerTypesString); | |
NSURL *url = [NSURL URLWithString:@"http://api.iwaqa.com/waqa/new"]; |
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
( | |
{ | |
key = question; | |
value = test; | |
}, | |
{ | |
key = group; | |
}, | |
{ | |
key = answers; |
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
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/var/www/html/app/m/Waqa/Answers.php</b> on line <b>52</b><br /> | |
{"msg":"invalid","verbose":"","missing":null,"invalid":{"answer insert fail...":"query ok"},"post_data":{"question":"test","group":"","answers":"["test","No"]","answerTypes":"["string","string"]","lat":"+37.785834","long":"-122.406417","radius":"1 Mile","debug_msg1":"api request received, type: post"}} |
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
NSArray *answers = [[NSArray alloc]initWithObjects:[waqaData objectForKey:@"Answer A"], [waqaData objectForKey:@"Answer B"], [waqaData objectForKey:@"Answer C"],[waqaData objectForKey:@"Answer D"], [waqaData objectForKey:@"Answer E"], nil]; | |
NSArray *answerTypes = [[NSArray alloc]initWithObjects:answerAType, answerBType, answerCType, answerDType, answerEType, nil]; | |
NSString *question = [waqaData objectForKey:@"textQuestion"]; | |
NSString *groups = [NSString stringWithFormat:@"%@",[[waqaData objectForKey:@"groups"] objectAtIndex:0]]; | |
NSString *answersString = [answers JSONString]; | |
NSString *answerTypesString = [answerTypes JSONString]; | |
NSString *latitude = [waqaData objectForKey:@"latitude"]; | |
NSString *longitude = [waqaData objectForKey:@"longitude"]; |
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
( | |
{ | |
key = ident; | |
value = QhAE999E9EE27rrOrOOOrU4t; | |
}, | |
{ | |
key = guest; | |
value = "{\n features = {\n exterior = (\n {\n cnote = \"\";\n fid = 1745;\n gnote = \"\";\n iqs = 0;\n name = \"Tire Tread Life Expectations\";\n rating = 0;\n selected = 0;\n },\n {\n cnote = \"\";\n fid = 1746;\n gnote = \"Have guest operate opener switch\";\n iqs = 0;\n name = \"Fuel Door Release\";\n rating = 0;\n selected = 0;\n },\n {\n cnote = \"\";\n fid = 1747;\n gnote = \"Have guest operate one-push fuel filler door\";\n iqs = 0;\n name = \"One-Push Fuel Door\";\n rating = 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
- (void) sendFacebookRequest { | |
if (initialLoad) { | |
activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; | |
activityIndicator.frame = CGRectMake(120, 115, 100, 100); | |
[activityIndicator startAnimating]; | |
[self.view addSubview:activityIndicator]; | |
} | |
[SVProgressHUD showWithStatus:@"Refreshing Photos"]; | |
AppDelegate *delegate = (AppDelegate *) [[UIApplication sharedApplication] delegate]; |
OlderNewer