Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPageControl dot for a search page

Is there any way to add a magnification glass icon instead of the dot for my first page, that allows to perform some search, using the UIPageControl for my native application on the iPhone?

I've tried to google, but haven't find similar questions at all, but it looks like a wide-spread feature in Apple applications.

Can anybody help me with an advice?

like image 623
Denis Avatar asked Nov 19 '09 09:11

Denis


1 Answers

Basically UIPageControl has an _indicators array that contains UIViews for each of the dots. This array is a private property, so you should not mess with it. If you need custom icons, you will have to do your own page indicator implementation.

Edit: After some more research, it seems you can replace the UIPageControl subviews to customize the dot images. Check http://www.onidev.com/2009/12/02/customisable-uipagecontrol/ for details. Still not sure how Apple reviewers are going to feel about doing such thing though.

like image 120
Miguel Ángel Friginal Avatar answered Oct 31 '22 16:10

Miguel Ángel Friginal