Archive for August, 2010

Unicode Mirror Character

Wednesday, August 4th, 2010

It turns out that unicode standard defines a character that explicitly reverses the following text. You can insert it as ‮ in your html. Here is a sample:

Normal Text:

Send more money

Prepended By Mirror Character:

‮Send more money

Here is the specification of algorithm.

Customizable UIPageControl Clone

Sunday, August 1st, 2010

This code is now a part of the BaseAppKit.

I'm working on a project that requires to use UIPageControl. The catch? White background. With UIScrollView you can choose between white and black indicators, with UIPageControl no luck — only white dots.

But it turns out that UIPageControl is not that complicated. I've opened its definition, copied it, added dots color property and implementation. Now I have a drop-in replacement for UIPageControl and free to choose any color for the dots.

ZZPageControl

Sample project with ZZPageControl class is available in SVN repository. If you spot any problems with it please contact me!