News for hackers. Stuff that matters.
Re:Show HN: iOS Table View that automatically adjusts with k... by jrmg on Tuesday March 20, 2012 @04:28AM (#3728306)
When using CGFloat you want to make sure to use 0.0 and 50.0.

Actually, on iOS, CGFloat is 32 bits, so you should use '0.0f' and '50.0f'.

On the Mac, in, 64-bit, it's a 64-bit value, so your advice would be correct there.

It is slightly annoying there's no easy way to write a CGFloat literal in a cross-platform way apart from the overly verbose '((CGFloat)50.0)'.

Re:Show HN: iOS Table View that automatically adjusts with k... by LinaLauneBaer on Tuesday March 20, 2012 @04:51AM (#3728342)
You are - of course - correct. Did too much Mac development lately. :)