• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableViewController


  • Subject: Re: UITableViewController
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 29 Jun 2017 15:05:35 +0700

> On 29 Jun 2017, at 12:13, Quincey Morris
> <email@hidden> wrote:
>
> On Jun 28, 2017, at 22:02 , Gerriet M. Denkmann <email@hidden> wrote:
>>
>> I had to do two more steps:
>>
>> 1. give the segue an identifier, like: “EmbedSegueToTableViewController”
>>
>> 2. in the UITableViewController which formerly did have a UITableView and
>> now has the container view:
>>
>> - (void)viewDidLoad
>> {
>>      …
>>      [ self performSegueWithIdentifier: @“EmbedSegueToTableViewController”
>> sender: self ];
>> }
>
> That’s bizarre, and shouldn’t be necessary. I just tried my test project
> again to make sure, and the table view appears without needing to do this.

My new TableViewController shows in the Connections Inspector:
Presenting Segues
Embed → Container View viewDidLoad

and also the Container View has:
Triggered Segues
viedDidLoad     TableViewController Embed

What I do not understand: Container View is a UIView, which does not have
viedDidLoad (although its ViewController has such a method).

The ViewController (MasterViewController) which owns Container View has no
Triggered Segues.


>
> Are you sure this wasn’t a timing problem, where you expected the table view
> to exist before the loading process got to it? I can’t think of any other
> explanation.

The window is controlled by MasterViewController; it does its viewDidLoad;
everything looks fine, but the container View is just a white rectangle.
No prepareForSegue: is called.

But with [ self performSegueWithIdentifier: kSegueToFreshTable sender: self ]
the window contains a tableView and prepareForSegue is called, with
destinationViewController = my new TableViewController.

Kind regards,

Gerriet.

_______________________________________________

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
      • From: Quincey Morris <email@hidden>
References: 
 >UITableViewController (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: UITableViewController (From: Quincey Morris <email@hidden>)
 >Re: UITableViewController (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: UITableViewController (From: Quincey Morris <email@hidden>)
 >Re: UITableViewController (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: UITableViewController (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: UITableViewController
  • Next by Date: Re: UITableViewController
  • Previous by thread: Re: UITableViewController
  • Next by thread: Re: UITableViewController
  • Index(es):
    • Date
    • Thread