Skip to content

Commit

Permalink
Merge pull request #288 from IndieGoGo/fix_msg_send
Browse files Browse the repository at this point in the history
Fixing  objc_msgSend([UIColor class], selector); issue with Cocoapods 0.36
  • Loading branch information
phatmann committed Mar 30, 2015
2 parents 5542b41 + 529ed3e commit c5b6566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NUI/Core/NUIConverter.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ + (UIColor*)toColor:(NSString*)value
if ([[UIColor class] respondsToSelector:selector]) {
// [[UIColor class] performSelector:selector] would be better here, but it causes
// a warning: "PerformSelector may cause a leak because its selector is unknown"
return objc_msgSend([UIColor class], selector);
id (*typed_msgSend)(id, SEL) = (void *)objc_msgSend;
// objc_msgSend([UIColor class], selector); cause error: too many arguments to function call, expected 0, have 2
return typed_msgSend([UIColor class], selector);
}
}

Expand Down

0 comments on commit c5b6566

Please sign in to comment.