>> Or is my installation of Xcode screwed up?
>
> Probably not. Why would you think that.
It's not as unlikely as it sounds. i had an issue where xcode would crash so
often it became impossible to get anything done. even loading a workspace would
be enough to make it crash. reinstalling xcode
On Tue, 14 Feb 2012 18:48:10 -0600, William Squires said:
>So what's the correct place to put initialization code for a custom UIView
>subclass?
Depends how it's instantiated. If in code, initWithFrame. But if from a nib,
initWithFrame will never be called; instead, use initWithCoder or awakeFr
On 15 Feb, 2012, at 8:48, William Squires
> AppDelegate loads the view controller and it's xib - confirmed, as the
> drawRect: method in TestView does its thing (ViewController.xib's view's
> class is set to TestView). But when I put an NSLog in TestView.m by adding a
> -(void)viewDidLoad(
-viewDidLoad is a method on UIViewController - it's not something that will get
called on a UIView. If you have initialization code, you should override the
default initializer, -initWithFrame:.
Understanding the role of view controllers and views is an important thing to
have as a foundation f
In my sample project, I've got
TestView.h
TestView.m
RBTestView.h
RBTestView.m
AppDelegate.h
AppDelegate.m
ViewController.h
ViewController.m
ViewController.xib
AppDelegate loads the view controller and it's xib - confirmed, as the
drawRect: method in TestView does its thing (ViewController.xib's