Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. 2014-08-28 17:44:26.298 GuessGreek[59754:607] -[WordViewController tableView:didSelectRowAtIndexPath:]
  2. 2014-08-28 17:44:26.299 GuessGreek[59754:607] -[WordDetailsViewController viewDidLoad]
  3. 2014-08-28 17:44:26.300 GuessGreek[59754:607] detailItem 1<WordEntity: 0x786853e0> (entity: WordEntity; id: 0x78685810 <x-coredata://B2B61C41-1855-46EB-AA5E-04697CA6B025/WordEntity/p1454> ; data: {
  4. category = uncategorized;
  5. changeFlag = nil;
  6. englishScore = 0;
  7. englishText = "unmarried, single";
  8. example = nil;
  9. favorite = nil;
  10. greekScore = 0;
  11. greekText = "U03acU03b3U03b1U03bcU03bfU03c2-U03b7-U03bf";
  12. type = Adjective;
  13. uid = 1454;
  14. })
  15.  
  16. 2014-08-28 17:44:26.302 GuessGreek[59754:607] 1 greekTextField: (null)
  17. 2014-08-28 17:44:26.303 GuessGreek[59754:607] 1 englishTextField: (null)
  18.  
  19. > -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  20. > if (_IPAD) {
  21. >
  22. > id object;
  23. > if (self.searchResults.count > 0)
  24. > {
  25. > object = [self.searchResults objectAtIndex:indexPath.row];
  26. > [self.searchDisplayController setActive:NO];
  27. > }
  28. > else
  29. > {
  30. > object = [self.fetchedResultsController objectAtIndexPath:indexPath];
  31. >
  32. > }
  33. >
  34. > wordDetailsViewController.detailItem = object;
  35. > [wordDetailsViewController viewDidLoad];
  36. >
  37. > } }
  38.  
  39. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  40. {
  41. if ([segue.identifier isEqualToString:@"wordToDetails"])
  42.  
  43. NSIndexPath *indexPath = [self.searchDisplayController.searchResultsTableView indexPathForCell:(UITableViewCell *)sender];
  44.  
  45. id object;
  46. if (indexPath != nil)
  47. {
  48. object = [self.searchResults objectAtIndex:indexPath.row];
  49. [self.searchDisplayController setActive:NO];
  50. }
  51. else
  52. {
  53. indexPath = [self.wordTable indexPathForCell:(UITableViewCell *)sender];
  54. object = [self.fetchedResultsController objectAtIndexPath:indexPath];
  55.  
  56. }
  57.  
  58.  
  59. WordDetailsViewController *destinationController = segue.destinationViewController;
  60.  
  61. destinationController.detailItem = object;
  62.  
  63. }
  64. }
  65.  
  66. self.greekTextField.text = [self.detailItem valueForKey:@"greekText"];
  67. self.englishTextField.text = [self.detailItem valueForKey:@"englishText"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement