12

Please explain to me what is initWithCoder?

Thanks.

1

1 Answer 1

9

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

Sign up to request clarification or add additional context in comments.

2 Comments

when the initWithCoder will call or what event?
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.