I am using the SplitViewController template. How do I set the title on the topbar in the detailview? Been trying to work this out for hours. Tried simple:
detailViewController.title = @"String";
but no luck.
Any help appreciated.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming it’s a toolbar that you’re attempting to add a title to, why not add a UIBarButton with
With a little computation hoop jumping you could figure out the width to place this item somewhere in the middle of the toolbar. Then make it so with a
Then add the item to the mutableArray from above and then to the toolbar like
This will work on the iPhone/Touch with the 3.1 SDK, I can’t (legally) say anything about the 3.2 until April 3…