Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // UIView+cloneSerialization.h
- //
- // Created by Jonathan Annett on 9/10/13.
- // Copyright (c) 2013 Sophtwhere. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UIView (cloneSerialization)
- // returns the data needed to reserialize the view.
- -(NSData*) serializedData;
- // instantiates a (generic) UIView object from the given serilzation data.
- + (UIView *) UIViewFromSerializedData:(NSData *)data;
- // instantiates the derived class from previously serialized data.
- + (id) viewFromSerializedData:(NSData *)data;
- //creates an on the fly copy of the view, as it is. (will be a generic UIView object)
- -(UIView*) cloneAsUIView ;
- //creates an on the fly copy of the view, as it is. (will be the same class as instance you call it on)
- -(id) clone;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement