Open tommypeps opened 8 years ago
On class extend NSObject+XLFormAdditions.h the function value data check vale of object
-(id)valueData
if ([self conformsToProtocol:@protocol(XLFormOptionObject)]){ return [(id<XLFormOptionObject>)self formValue]; } return nil;
check the value data of object XLFormOptionObject must be:
if ([self conformsToProtocol:@protocol(XLFormOptionObject)]){ return (id<XLFormOptionObject>)self; } return nil;
according to XLFormOptionObject equal and hash.
Why not compare the formValue of the object in 'isEqual'? The valueData is also used in httpParameters and we dont want to get the object there but the formValue
formValue
valueData
On class extend NSObject+XLFormAdditions.h the function value data check vale of object
check the value data of object XLFormOptionObject must be:
according to XLFormOptionObject equal and hash.