• 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
Crash when using TableView in View managed by TabController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash when using TableView in View managed by TabController


  • Subject: Crash when using TableView in View managed by TabController
  • From: Trygve Inda <email@hidden>
  • Date: Sun, 19 Jul 2009 06:31:35 +0000
  • Thread-topic: Crash when using TableView in View managed by TabController

I have a TabBarController that has three tabs, and each view for these is
kept in its own nib. One of these views has a UITableView which has its
delegate and dataSource attached to the File's Owner.

The nib also has TableCell objects which are returned from:

- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath

All is well when I load the view without the tab controller.

When the TabController is used to manage the view however, I get a crash:

iPhone Simulator 2.2 (77.4.9), iPhone OS 2.2.1 (5H11)
*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<UIViewController 0x525e10> setValue:forUndefinedKey:]: this class
is not key value coding-compliant for the key mySwitchCell.'


mySwitchCell is defined in the in the nib and of course works when the
TabController is not used.

How can I use a TabController to manage a view that contains a TableView?

Thanks,

Trygve


_______________________________________________

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

  • Follow-Ups:
    • Re: Crash when using TableView in View managed by TabController
      • From: Trygve Inda <email@hidden>
  • Prev by Date: Re: Custom NSArrayController - Dynamic Class?
  • Next by Date: Re: Crash when using TableView in View managed by TabController
  • Previous by thread: Re: Maybe I've misunderstood something
  • Next by thread: Re: Crash when using TableView in View managed by TabController
  • Index(es):
    • Date
    • Thread