Dumb question about view controllers
Dumb question about view controllers
- Subject: Dumb question about view controllers
- From: William Squires <email@hidden>
- Date: Sat, 02 May 2015 13:18:43 -0500
This is sort of in response to the thread, "Parent/child view controllers: when shall we use it?".
Since, in both iOS and Mac OS X, a control IS a view, why don't controls have their own dedicated view controllers? i.e. If I make a new single-view iOS project, and I put a UILabel in the main view, 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)?
I'm guessing this is because they're built in to the frameworks?
_______________________________________________
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