• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iPhone: tab-based application, 1st view with tableview?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone: tab-based application, 1st view with tableview?


  • Subject: iPhone: tab-based application, 1st view with tableview?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Wed, 6 Jan 2010 09:37:49 -0500

Noob alert. I created a project based on tabbar. The firstViewController I
placed a UITableView (in IB). No problems. However I want to hook that
tableview up so that numberOfRowsInSection, etc. get fired.

In MainWindow.xib I connected the table view with the "Selected First View
Controller". I set the datasource and delegate to the same (right-click on
the tableview and drag to the Selected First View Controller in the
MainWindow.xib window).

Outlets
---------
dataSource    Selected FIrst View Controller
delegate         Selected First View Controller

Referencing Outlets
------------------------
songsTable    Selected First View Controller


In my FirstViewController.m I have:

- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {

  NSLog(@"numberRows called" );

  return 1;

}

This method never gets called, leading me to know things aren't wired
correctly. I must be missing something simple.??
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Bindings blues
  • Next by Date: Re: iPhone: NSXMLParser problems
  • Previous by thread: Re: Bindings blues
  • Next by thread: NSXMLParser question about duplicate nodes
  • Index(es):
    • Date
    • Thread