mRs- / HexColors

HexColors is an extension for UIColor and NSColor to support for creating colors from a hex strings
MIT License
457 stars 102 forks source link

Fixed error that would lead to an exception when receiving an empty string #16

Closed ChocoChipset closed 9 years ago

ChocoChipset commented 9 years ago

The case:

[HXColor colorWithHexString:@""];

would raise an exception.

This commit places a 'safe-net' for nil or empty strings received as argument.