Re: Dumb question about view controllers
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