Skip to content

Instantly share code, notes, and snippets.

View daniel-rueda's full-sized avatar

Daniel Rueda Jimenez daniel-rueda

View GitHub Profile
@daniel-rueda
daniel-rueda / gist:3291397
Created August 8, 2012 02:04 — forked from christianroman/gist:3248993
Check if UITextFields are empty using Objective-C
BOOL emptyTextFields(id toCompare,...)
{
va_list args;
va_start(args, toCompare);
id value = nil;
BOOL match = NO;
while ( (value = va_arg(args,id)) ){
if( [toCompare isKindOfClass:[NSString class]] && [value isKindOfClass:[UITextField class]] ){