Re: Outlets are nil after awakeFromNib call

2015-05-10 Thread Kyle Sluder
On Sun, May 10, 2015, at 11:58 AM, Sasikumar JP wrote: > Hi, > >I am observing outlets are nil after the awakeFromNib call in my > viewcontroller which is created from the storyboard. > > As per the apple documentation, awakeFromNib will be called after > initialising all the objects and

Re: Outlets are nil after awakeFromNib call

2015-05-10 Thread Michael David Crawford
I don't know why they are nil, but in general it is quite helpful to use assertions anywhere you could have made a coding error. This is, rather than: void foo: (char*)buf { // buf points to a valid C string ... } use this: void foo: (char*)buf { assert( buf != NULL ); ... } On

Outlets are nil after awakeFromNib call

2015-05-10 Thread Sasikumar JP
Hi, I am observing outlets are nil after the awakeFromNib call in my viewcontroller which is created from the storyboard. As per the apple documentation, awakeFromNib will be called after initialising all the objects and outlets for a view controller from nib. i hope awakeFromNib is va