title: Create a table on objective-c code without storyboard
body: <p>I can't create table on objective-c, cause I start learning objective-c.</p>
  
  <p>Google can't help me, I tried.
  I hope what u can help me</p>
  
  <p>//Update: Below Nick showed the correct answer. After some time, I was prompted to answer this question and now I can share with you the answer. I want to be useful for such guys as I was</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      //Here we initialize the table, create delegates and display it on the screen
      arrData=[[NSArray alloc]initWithObjects:@"ONE",@"TWO",,@"THREE", nil];
      tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
      tableView.delegate = self;
      tableView.dataSource = self;
  
      [self.view addSubview:tableView];
  }
  
  #pragma mark - UITableView DataSource &amp; Delegate
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:    (NSInteger)section
  {
      return arrData.count;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView  cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      //Cells initialization
      static NSString *identifier = @"cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
      if (cell == nil)
      {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
      }
      cell.textLabel.text = [arrData objectAtIndex:indexPath.row];
      return cell;
  }
  </code></pre>