views:

105

answers:

0

Hi

I would like to add a UIBarButton of style UIBarButtonSystemItemDone to a UIView, instead of setting it as a property of a UINavigationItem.

I present a modalViewController that has a top-bar view that looks like a navigationBar, I need for the user to have a way to dismiss the modalViewController. It would be practical to add a, well known, "Done" button there, and save me a trip to photoshop to try and build my own.

Can this be done in a way that does not break SDK guidelines/best practice?