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)scrollViewDidScroll:(UIScrollView *)scrollView{ | |
| [_refreshHeaderView egoRefreshScrollViewDidScroll:scrollView]; | |
| fetchingMoreMessages = NO; | |
| if(self.tableView.contentOffset.y<0){ | |
| //it means table view is pulled down like refresh | |
| return; | |
| } |
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
| PFObject *recipient; | |
| recipient = [selectedRecipient objectForKey:@"cardOwner"]; | |
| //send card to recipient | |
| PFQuery *checkExisting = [PFQuery queryWithClassName:@"exchangedCards"]; | |
| [checkExisting whereKey:@"cardRecipient" equalTo:recipient]; | |
| [checkExisting whereKey:@"zapCard" equalTo:selectedCardToSend]; | |
| [checkExisting findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
| if (objects.count == 0) { | |
| //send your card to person | |
| PFObject *exchangeCard = [PFObject objectWithClassName:@"exchangedCards"]; |
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
| PFObject *recipient; | |
| recipient = [selectedRecipient objectForKey:@"cardOwner"]; | |
| //send card to recipient | |
| PFQuery *checkExisting = [PFQuery queryWithClassName:@"exchangedCards"]; | |
| [checkExisting whereKey:@"cardRecipient" equalTo:recipient]; | |
| [checkExisting whereKey:@"zapCard" equalTo:selectedCardToSend]; | |
| [checkExisting findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
| if (objects.count == 0) { | |
| //send your card to person | |
| PFObject *exchangeCard = [PFObject objectWithClassName:@"exchangedCards"]; |
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
| for (NSUInteger i = 1; i < myZapCards.count; i++) { | |
| [cardsToQuery addObject:[myZapCards objectAtIndex:i]]; | |
| } | |
| PFQuery *query = [PFQuery queryWithClassName:@"cardLocation"]; | |
| //[query whereKey:@"card" equalTo:[myZapCards objectAtIndex:zapPageControl.currentPage]]; | |
| [query whereKey:@"card" containedIn:cardsToQuery]; | |
| [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
| if (!error) { | |
| // The find succeeded. |
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
| for (NSUInteger i = 1; i < myZapCards.count; i++) { | |
| [cardsToQuery addObject:[myZapCards objectAtIndex:i]]; | |
| } | |
| PFQuery *getUsers = [PFQuery queryWithClassName:@"cardLocation"]; | |
| // Interested in locations near user. | |
| [getUsers whereKey:@"location" nearGeoPoint:point withinMiles:10]; | |
| [getUsers findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
| if (!error) { | |
| resultSet = [[NSMutableArray alloc]initWithCapacity:1]; | |
| NSLog(@"Successfully retrieved %d record.", objects.count); |
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
| for (PFObject *card in objects) { | |
| PFObject *cards = [card objectForKey:@"card"]; | |
| PFObject *userID = [[[card objectForKey:@"card"] objectForKey:@"cardOwner"] objectForKey:@"username"]; | |
| NSString *currentUserNameString = [NSString stringWithFormat:@"%@", [currentUser objectForKey:@"username"]]; | |
| NSString *fetchedUserNameString = [NSString stringWithFormat:@"%@", userID]; | |
| if ([card objectForKey:@"card"] != nil) { | |
| //only get cards if they are currently set to broadcasting | |
| if ([[[card objectForKey:@"card"]objectForKey:@"active"]isEqualToString:@"1"]) { | |
| if ([[[card objectForKey:@"card"]objectForKey:@"broadcasting"]isEqualToString:@"1"]) { | |
| if (![currentUserNameString isEqualToString:fetchedUserNameString]) { |
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
| PFQuery *getUsers = [PFQuery queryWithClassName:@"cardLocation"]; | |
| // Interested in locations near user. | |
| [getUsers whereKey:@"location" nearGeoPoint:point withinMiles:10]; | |
| [getUsers findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
| if (!error) { | |
| resultSet = [[NSMutableArray alloc]initWithCapacity:1]; | |
| NSLog(@"Successfully retrieved %d record.", objects.count); | |
| for (PFObject *card in objects) { | |
| NSTimeInterval timeSinceLastUpdate = [card.updatedAt timeIntervalSinceNow]; | |
| //only display users if they've checked in less than 30 minutes ago |
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)getContacts { | |
| NSUserDefaults *zapData = [NSUserDefaults alloc]; | |
| double distance; | |
| if ([[zapData objectForKey:@"distanceFilter"]isEqualToString:@"50 Yards"]) { | |
| distance = 0.0284090909; | |
| } | |
| else if ([[zapData objectForKey:@"distanceFilter"]isEqualToString:@"100 Yards"]) { | |
| distance = 0.0568181818; | |
| } | |
| else if ([[zapData objectForKey:@"distanceFilter"]isEqualToString:@"500 Yards"]) { |
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
| Exception Type: 00000020 | |
| Exception Codes: 0x8badf00d | |
| Highlighted Thread: 0 | |
| Application Specific Information: | |
| com.iwaqa.WAQA failed to launch in time | |
| Elapsed total CPU time (seconds): 1.230 (user 1.230, system 0.000), 6% CPU | |
| Elapsed application CPU time (seconds): 0.575, 3% CPU |
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
| Incident Identifier: BAD2D6D6-0384-469D-B147-A41D024882E8 | |
| CrashReporter Key: 6a1b5170275af9471f128322cd67dd2c7ceb96c7 | |
| Hardware Model: iPhone2,1 | |
| Process: WAQA [2920] | |
| Path: /var/mobile/Applications/14C1E814-56FE-46B2-9706-06BAA34C20FD/WAQA.app/WAQA | |
| Identifier: WAQA | |
| Version: ??? (???) | |
| Code Type: ARM (Native) | |
| Parent Process: launchd [1] |