• 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: Xcode 6beta3, Swift, UITableView and auto complete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 6beta3, Swift, UITableView and auto complete


  • Subject: Re: Xcode 6beta3, Swift, UITableView and auto complete
  • From: John Tsombakos <email@hidden>
  • Date: Sun, 13 Jul 2014 08:31:51 -0400

We'll, the class is defined as:

class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {

Are you using a UITableViewController, or, as in the article, just a UIViewController that has a UITableView on it? (I haven't tested with the former yet)

On Jul 13, 2014, at 2:22 AM, Roland King <email@hidden> wrote:

They do for me, as soon as I make the class inherit UITableViewDataSource, they show up. If I make it both datasource and delegate, they both show upl 

On 13 Jul 2014, at 12:14 pm, John Tsombakos <email@hidden> wrote:

Whoops, my bad. I meant data source methods. Either way, they don't appear in the auto complete suggestions.



On Jul 12, 2014, at 10:17 PM, Roland King <email@hidden> wrote:


On 13 Jul 2014, at 1:09 am, John Tsombakos <email@hidden> wrote:

 http://jamesonquave.com/blog/developing-ios-apps-using-swift-tutorial-part-2/

and in the section about setting up the table view delegate methods, Xcode doesn’t seem to want to offer all of the delegate methods for the UITableView, notably:

    func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell!

and

.. snip ..

Is it something I’m doing wrong, or do I just chalk it up to “beta, not quite complete”?

Thanks!
_______________________________________________

Perhaps because they are UITableViewDataSource methods not UITableViewDelegate ones? 

That tutorial seems a little rough. 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 6beta3, Swift, UITableView and auto complete
      • From: Roland King <email@hidden>
References: 
 >Xcode 6beta3, Swift, UITableView and auto complete (From: John Tsombakos <email@hidden>)
 >Re: Xcode 6beta3, Swift, UITableView and auto complete (From: Roland King <email@hidden>)
 >Re: Xcode 6beta3, Swift, UITableView and auto complete (From: John Tsombakos <email@hidden>)
 >Re: Xcode 6beta3, Swift, UITableView and auto complete (From: Roland King <email@hidden>)

  • Prev by Date: Re: Xcode 6beta3, Swift, UITableView and auto complete
  • Next by Date: Re: Xcode 6beta3, Swift, UITableView and auto complete
  • Previous by thread: Re: Xcode 6beta3, Swift, UITableView and auto complete
  • Next by thread: Re: Xcode 6beta3, Swift, UITableView and auto complete
  • Index(es):
    • Date
    • Thread