Skip to content

Commit

Permalink
Fix isssue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
skywinder committed Jul 7, 2014
1 parent fef4db9 commit 5a11f0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Pickers/ActionSheetDistancePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ - (void)notifyTarget:(id)target didSucceedWithAction:(SEL)action origin:(id)orig

//sending three objects, so can't use performSelector:
if ([target respondsToSelector:action])
objc_msgSend(target, action, [NSNumber numberWithInt:bigUnits], [NSNumber numberWithInt:smallUnits], origin);
{
void (*response)(id, SEL, id, id,id) = (void (*)(id, SEL, id, id,id)) objc_msgSend;
response(target, action, [NSNumber numberWithInteger: bigUnits], [NSNumber numberWithInteger: smallUnits], origin);
}
else
NSAssert(NO, @"Invalid target/action ( %s / %s ) combination used for ActionSheetPicker", object_getClassName(target), sel_getName(action));
}
Expand Down

0 comments on commit 5a11f0b

Please sign in to comment.