Using this to copy UIView
UIView copyOfView =
[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:originalView]]
This throws the following error:
NSInvalidUnarchiveOperationException
[NSKeyedUnarchiver decodeBoolForKey]: value for key (UIHighlighted) is not a boolean