Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationBar with buttons as title.

I have done some digging and can't seem to get anything useful.

What I am trying to do is pretty basic but I'm not sure if their is:

1. An easier way

2. Or if Apple will give it a "no no"

I have a view that is controlled via UINavigationController (obviously from the title of this post) and in it has an object/view.

The view is fairly congested already with content. Not really congested but no more room to fit things comfortably.

The user needs to be able to rate this object by using a different number of starts (1-5).

The ideal way I would see this happening would be to have 5 star buttons (with images of course) set in the UINavigationBar title position (centered).

So look something like this:

___________________________________
|                                 |
| Back      * * * * *     Action  |
|_________________________________|
|                                 |
|         view down here          |
|                                 |

Any input would be very much appreciated and as always, thank you for your time!

like image 846
random Avatar asked Dec 30 '11 05:12

random


1 Answers

You can just create your custom widget with the 5 star rating functionality and add it to the navigationItem

self.navigationItem.titleView = customWidget;
like image 146
Paul.s Avatar answered Sep 21 '22 17:09

Paul.s