Is it possible to serialize a UIView
object? If yes how can I do that?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- Json.NET deserializing contents of a JObject?
- How can I implement password recovery in an iPhone
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- serializing a list of objects into a file in java
- Unable to process app at this time due to a genera
- Convert C# Object to Json Object
- How can I add media attachments to my push notific
UIView
implements theNSCoding
protocol, so you can useencodeWithCoder:
to get a serialized representation, andinitWithCoder:
to reconstitute aUIView
from such a representation. You can find a lot of details in the Serializations Programming Guide for Cocoa.Here is quick example of how to do it: