title: Displaying Json result in UITableView
body: <p>I am trying to put my <code>JSON</code> results in my <code>UITableView</code>. I got the <code>JSON</code> but I cannot put them to my tableview. Any idea what I am doing wrong?</p>
  
  <p>Here's some relevant code:</p>
  
  <pre><code>- (void)viewDidLoad {
      TitlosArray = [[NSMutableArray alloc] init];
      KeimenoArray = [[NSMutableArray alloc] init];
      [super viewDidLoad];
      [self fetchTweets];
  }
  </code></pre>
  
  <p>My <code>JSON</code> parser is working fine:</p>
  
  <pre><code>- (void)fetchTweets {
      dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
  
      dispatch_async(queue,  ^{
          NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://myselection.gr/support3/frontistiria_project/android_data.php/?type=publicNews"]];
  
          [self performSelectorOnMainThread:@selector(fetchedForecast:)withObject:data waitUntilDone:YES];
      });
  }
  
  - (void)fetchedForecast:(NSData *)responseData {
      NSError *error;
      NSDictionary *json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&amp;error];
  
      NSLog(@"Rows %@", [json objectForKey:@"total_rows"]);
      NSArray *items = [json valueForKeyPath:@"content"];
  
      NSEnumerator *enumerator = [items objectEnumerator];
      titlosjson.text=[[items objectAtIndex:1] objectForKey:@"title"];
      Keimenojson.text=[[items objectAtIndex:1] objectForKey:@"descr"];
  
      while (item = (NSDictionary*)[enumerator nextObject]) {
          [TitlosArray addObject:[item objectForKey:@"title"]];
          [KeimenoArray addObject:[item objectForKey:@"descr"]];
          NSLog(@"Title = %@", [item objectForKey:@"title"]);
          NSLog(@"Descr = %@",[item objectForKey:@"descr"]);
      }
  
      NSLog(@"%@",[TitlosArray objectAtIndex: 1]);
      myArray = [NSArray arrayWithArray:TitlosArray ];
      NSLog(@"%@", [myArray objectAtIndex: 2]);
  }
  </code></pre>
  
  <p>But I have problem with my <code>UITableView</code>:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
      return myArray.count;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      static NSString *CellIdentifier = @"TweetCell";
  
      UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
      }
  
      //cell.textLabel.text = [NSString stringWithFormat:@"by %@", text];
      return cell;
  }
  </code></pre>