I have the following method for my class which suppose to load the nib file and instantiate the object.
- (id)initWithCoder:(NSCoder*)aDecoder
{
if(self = [super initWithCoder:aDecoder])
{
// Do something
}
return self;
}
- so based on this init method how do u instantiate an object of this class?
The init method requires a parameter (NSCoder), so what is this nscoder? how can i create it?
MyClass *class = [[MyClass alloc] initWithCoder:aCoder];