General purpose iOS/Objective-C validation framework