nicklockwood / FXPageControl

Simple, drop-in replacement for the iPhone UIPageControl that allows customisation of the dot colour, size and spacing.
Other
298 stars 69 forks source link

Annotate delegate methods as `nullable` #19

Closed pbendersky closed 7 years ago

pbendersky commented 7 years ago

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.