The location of a piece of code always matters. I was fiddling with the Charts library today and found out that if you set a chart’s data to nil
, it renders some informative text by default. My data source doesn’t pass nil
but an empty array around, though, so I had to convert empty arrays to nil
to make use of this feature.
Continue reading …
Found this little gem in a library called NextGrowingTextView
, shortened to make the point clear with less code. It’s a collection of block-based event handlers in a little class:
Continue reading …
As I’m exploring the use of block based API, which means to assign closures or functions handles to properties or pass them around as parameters to other functions, I found a few benefits and drawbacks in comparison to protocol-based object interactions. Here’s a breakdown of criteria for blocks and delegates.
Continue reading …