Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CarlosH

macrumors member
Original poster
Apr 9, 2008
76
8
San Francisco, CA
I usually dont use nibs, but I want to do a view using only nib, but also need to do some drawing on code. Everything works fine, except that the initFromFrame: method is never called withing the view. Do I need to add something?
 

xsmasher

macrumors regular
Jul 18, 2008
140
0
I usually dont use nibs, but I want to do a view using only nib, but also need to do some drawing on code. Everything works fine, except that the initFromFrame: method is never called withing the view. Do I need to add something?

Yes, initWithCoder is called instead. Change your initWithFrame to initWithCoder; it expects an NSCoder instead of a frame, though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.