adding button to the navigation bar

Posted by praseed on Stack Overflow See other posts from Stack Overflow or by praseed
Published on 2010-06-02T08:37:24Z Indexed on 2010/06/02 8:43 UTC
Read the original article Hit count: 131

Filed under:

hi friends,

i have a problem while adding button to the navigation bar.. My application consist of two view controllers added to the viewControllers array of a tabBarController. Inturn this tabBarController is added to the viewControllers array of a navigationController. In one of the views i have a textfield for entering dates . On the tap of this textfield the datepicker will pop up. simultaneously i want to display a done button on the navigation bar. how can i do this... i tried using

self.tabBarController.navigationController.navigationItem.rightBarButtonItem = self.doneButton;

But this is not working...

Pls help me out..

© Stack Overflow or respective owner

Related posts about iphone