• 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: Dumb question about view controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumb question about view controllers


  • Subject: Re: Dumb question about view controllers
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 02 May 2015 11:31:13 -0700

> On May 2, 2015, at 11:18 AM, William Squires <email@hidden> wrote:
>
> why doesn't Xcode generate a template view controller (code) for the UILabel (that is, UILabelViewController), just like there's a view controller for the main view (usu. ViewController.h and ViewController.m, or - in swift, just ViewController.swift)?

Because view controllers have a larger granularity than that. You usually only want one for an entire screen (on iOS) or a logical grouping of views. A single label is too tiny a thing to make a view controller for.

—Jens
_______________________________________________

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


References: 
 >Dumb question about view controllers (From: William Squires <email@hidden>)

  • Prev by Date: Dumb question about view controllers
  • Next by Date: Re: Dumb question about view controllers
  • Previous by thread: Dumb question about view controllers
  • Next by thread: Re: Dumb question about view controllers
  • Index(es):
    • Date
    • Thread