nicklockwood / FXPageControl

Simple, drop-in replacement for the iPhone UIPageControl that allows customisation of the dot colour, size and spacing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotate delegate methods as `nullable`

pbendersky opened this issue · comments

The method - (UIImage *)pageControl:(FXPageControl *)pageControl imageForDotAtIndex:(NSInteger)index should be nullable, so we can easily change a single image and keep the rest with the default.

As it is now, it's all or nothing, even though the code manages this case properly and falls back to the default image.