Tab Bar application and tableView

Discussion in 'iOS Programming' started by fernandovalente, Dec 24, 2009.

  1. fernandovalente macrumors 6502

    fernandovalente

    Joined:
    Aug 29, 2008
    Location:
    Third world **** hole, I mean, Brazil
    #1
    Hey guys, I'm developing a tab bar application with two views. The first one is a normal UIView, the second one is a UITableView. I got a problem. When I set the data source for the UITableView, it does nothing. The same code works on a view based application. The UITableViewController.xib, UITableViewController.h and the UITableViewController.m were created together on Xcode.
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    You have to make sure that the view that has the table view controller, make sure that the tabbarbutton has the same controller class.
     
  3. fernandovalente thread starter macrumors 6502

    fernandovalente

    Joined:
    Aug 29, 2008
    Location:
    Third world **** hole, I mean, Brazil
    #3
    Problem solved. I created a normal UIView, added a tableView and added a UITableViewController. I forgot to add the UITableViewController. Thanks.
     
  4. fernandovalente thread starter macrumors 6502

    fernandovalente

    Joined:
    Aug 29, 2008
    Location:
    Third world **** hole, I mean, Brazil
    #4
    I thought it was working. When I tap an UITableViewCell, the app crashs. :(
     

Share This Page