views:

620

answers:

1

Hello, there!

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?

A: 

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.

Miguel Ángel Friginal
Thanks for your answer! I hoped to the last it won't be in this way :-/
Denis
I've achieved my goal by adding a sub-view to the UIPageControl, above the search icon (had to spend some time to find out it's placement algorithm). It works just as needed. Whatever, I have to sent a small blame to the Apple's side for not allowing of this customization out of the box.
Denis