• 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
Re: UITableViewController init not called (storyboard)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableViewController init not called (storyboard)


  • Subject: Re: UITableViewController init not called (storyboard)
  • From: Ten Horses | Diederik Meijer <email@hidden>
  • Date: Tue, 12 Mar 2013 17:32:07 +0100

Have you tried moving those datasource codelines to viewDidLoad or viewWillAppear? It may be that when the view is instantiated from the storyboard init is not called?



Op 12 mrt. 2013, om 17:09 heeft Koen van der Drift <email@hidden> het volgende geschreven:

> I'm playing around with a storyboard app on iOS. To test a TableView I created a UITableViewController subclass, and set it as the custom class in the storyboard. Then in the init method, I added a bunch of objects to act as the datasource, however init never gets called, and my tableview remains empty.
>
> If I modify the datasource methods, by adding a cell title and return a positive number for the numberOfRows, I do see the table being filled, so everything must be hooked up ok.
>
> But why is init never called? I also tried - (id)initWithStyle:(UITableViewStyle)style, but that is not called either.
>
> Any ideas?
>
> - Koen.
> _______________________________________________
>
> 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
>


_______________________________________________

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: UITableViewController init not called (storyboard)
      • From: Koen van der Drift <email@hidden>
References: 
 >UITableViewController init not called (storyboard) (From: Koen van der Drift <email@hidden>)

  • Prev by Date: UITableViewController init not called (storyboard)
  • Next by Date: Re: Problem with using a Navigation Controller in Xcode
  • Previous by thread: UITableViewController init not called (storyboard)
  • Next by thread: Re: UITableViewController init not called (storyboard)
  • Index(es):
    • Date
    • Thread