title: UITableView Cell is not visible
body: <p>Hi in my project i need to pull data from json and insert into tableview.i have created two cells but its not coming even after a proper outlet connection.i dont know what is the mistake i have done.my tableview and cells are not visible please check my coding below which is also have json call.</p>
  
  <pre><code>-(void)WebServiceTopic{
  
      [MBProgressHUD showHUDAddedTo:self.view animated:YES];
      AFHTTPRequestOperationManager *TopicManager=[AFHTTPRequestOperationManager manager];
      AFJSONRequestSerializer*serializer=[AFJSONRequestSerializer serializer];
      [serializer setValue:@"application/json" forHTTPHeaderField:@"Content"];
      [serializer setValue:@"application/json" forHTTPHeaderField:@"Accept"];
      TopicManager.requestSerializer=serializer;
  
      NSString *Postlink = [NSString stringWithFormat:@"%@Discussions/%@/?categoryid=14",PUBLICURL, [[NSUserDefaults standardUserDefaults]valueForKey:@"USERID"]];
  
      [TopicManager GET:Postlink parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject){
  
          NSLog(@"JSON:%@", responseObject);
          NSMutableDictionary *userDict=(NSMutableDictionary *)responseObject;
          TopicArray = (NSMutableArray*)userDict;
          [TopicTable reloadData];
  
      }failure:^(AFHTTPRequestOperation *operation, NSError *error) {
  
          NSLog(@"the failure is %@", error);
          [MBProgressHUD hideHUDForView:self.view animated:YES];
      }];
  }
  
  #pragma mark -
  #pragma mark UITableView Datasource
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)sectionIndex
  {
      if (TopicArray.count==0) {
          return TopicArray.count;
      }
      return TopicArray.count;
  }
  
  
  
  -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
      if (indexPath.row==0)
      {
          static NSString *CellIdentifier1 = @"Cell";
          DiscussTopicCell *cell = (DiscussTopicCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1];
          if (TopicArray.count&gt;0) {
              NSDictionary *ResDiction = [TopicArray objectAtIndex:indexPath.row];
                      cell.ActTitle.text = [ResDiction objectForKey:@"Title"];
                      cell.Name.text=[ResDiction objectForKey:@"CreateUserName"];
                      cell.Comment.text=[ResDiction objectForKey:@"CommentCount"];
                      cell.Notes.text=[ResDiction objectForKey:@"Content"];
                      cell.Category.text=[ResDiction objectForKey:@"Category"];
                      cell.Time.text= [ResDiction objectForKey:@"CreateDate"];
  
  
              UIView * additionalSeparator = [[UIView alloc] initWithFrame:CGRectMake(0,cell.frame.size.height-3,cell.frame.size.width,3)];
              additionalSeparator.backgroundColor = [UIColor grayColor];
              [cell addSubview:additionalSeparator];
          }
  
          return cell;
      }
      else
      {
          static NSString *CellIdentifier2 = @"Cell2";
          DiscussTopicCell *cell = (DiscussTopicCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier2];
  
          NSDictionary *ResDiction = [TopicArray objectAtIndex:indexPath.row];
          cell.ActTitle.text = [ResDiction objectForKey:@"Title"];
          cell.Name.text=[ResDiction objectForKey:@"CreateUserName"];
          cell.Comment.text=[ResDiction objectForKey:@"CommentCount"];
          cell.Notes.text=[ResDiction objectForKey:@"Content"];
          cell.Category.text=[ResDiction objectForKey:@"Category"];
          cell.Time.text= [ResDiction objectForKey:@"CreateDate"];
  
          UIView * additionalSeparator = [[UIView alloc] initWithFrame:CGRectMake(0,cell.frame.size.height-3,cell.frame.size.width,3)];
          additionalSeparator.backgroundColor = [UIColor grayColor];
          [cell addSubview:additionalSeparator];
  
          return cell;
  
      }
  
  }
  </code></pre>