tags:

views:

173

answers:

1

Please explain to me what is initWithCoder?

Thanks.

+2  A: 

initWithCoder: is part of the NSCoder protocol, which is part of the Cocoa serialization system. Read the Archives and Serializations Guide for Cocoa.

amrox
when the initWithCoder will call or what event?
sasayins
It is called when you deserialize something from a file on disk. NSCoder is a protocol for creating and reading persistent store (a file) which contains an object of a class. `initWithCoder` creates an object using data from a file.
TechZen