I have declared a method in animal.h file
-(id)initWithName:(NSString *)n description:(NSString *)d url:(NSString *)u;
and i have implemented this method in animal.m file like
-(id)initWithName:(NSString *)n description:(NSString *)d url:(NSString *)u
{
self.name=n;
self.description=d;
self.imageURL=u;
}
but at the end of file it shows warning like “Control reaches end of non-void function”
can anyone tell me what is the problem?
init Method Should return object Reference ..
so ,