UIView optimization, UIControl setTarget: action: forControlEvents:, NSNumber, UIColor minor fix #121

Merged
merged 2 commits into from May 27, 2012

Projects

None yet

1 participant

@ghost
ghost commented May 23, 2012
  • UIColor colorWithHex: method accepts 0x along with # as a
    valid prefix
  • UIControl setTarget: action: forControlEvents: method allows to
    set exclusive handler removing all previously registered actions
  • Performance optimization UIView firstSuperviewOfClass: method
  • NSNumber category
    • dateValue method creates an instance of NSDate with current
      number as a timestamp
    • pluralWithForms: or pluralWithForms: language: method returns
      correct plural form for the current number, e.g. 1 tweet vs 2 tweets
Alexander Zats + `UIColor` `colorWithHex:` method accepts `0x` along with `#` as a
valid prefix
+ `UIControl` `setTarget: action: forControlEvents:` method allows to
set exclusive handler removing all previously registered actions
+ Performance optimization `UIView` `firstSuperviewOfClass:` method
+ `NSNumber` category
	+ `dateValue` method creates an instance of `NSDate` with current
number as a timestamp
	+ `pluralWithForms:` or `pluralWithForms: language:` method returns
correct plural form for the current number, e.g. `1 tweet` vs `2 tweets`
7610eea
@soffes
Owner
soffes commented May 26, 2012

Totally love everything here except the plural stuff. TTTLocalizedPluralString by @mattt is a much more complete solution. I'd let people use his fantastic library instead of starting to add support in SSToolkit since it is such a large problem.

Can you send me a pull request without the plural stuff?

@soffes soffes merged commit 8110ac9 into soffes:master May 27, 2012
@soffes
Owner
soffes commented May 27, 2012

Thanks so much! Really great additions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment