Wrox Programmer Forums
|
BOOK: Professional iPhone and iPad Database Application Programming
This is the forum to discuss the Wrox book Professional iPhone and iPad Database Application Programming by Patrick Alessi; ISBN: 978-0-470-63617-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Database Application Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2011, 08:08 PM
EEE EEE is offline
Registered User
 
Join Date: May 2011
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 7 ViewTaskController - Dynamic Nav Bar Title

In ViewTaskController.m, I'd like to create a dynamic Nav Bar Title instead of the static Nav Bar Title that would grab and dynamically create the Nav Bar title from whichever specific Task is selected on the RootViewController and then display that specific Task's name in the ViewTaskController Nav Bar.

If anyone can share any information on how to modify the viewDidLoad or any other areas in order to achieve this, I'd greatly appreciate it.

Thanks in advance for your help.

- (void)viewDidLoad {
[super viewDidLoad];

self.navigationItem.title = @"Task Detail";
 
Old May 26th, 2011, 09:18 AM
EEE EEE is offline
Registered User
 
Join Date: May 2011
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I figured this out and wanted to post the answer in case anyone else is interested in doing this.

In the -(void)viewDidLoad method in ViewTaskController.m, change self.navigationItem.title = @"Task Detail"; to self.navigationItem.title = managedTaskObject.text;

This will dynamically use the Task name of whichever Task you select from the RootView





Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Word doc's file path in the title bar but doc title only in Word taskbr item? numov_40 Word VBA 2 May 15th, 2011 04:06 AM
Nav Bar Styling VictorVictor BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 May 16th, 2006 06:02 PM
Centering of Image Within Nav Bar DuncanM CSS Cascading Style Sheets 1 April 26th, 2005 10:29 AM
How to trap Mouse events on Title bar/Caption bar chiefouko Pro VB.NET 2002/2003 0 September 21st, 2004 02:42 AM
nav bar problems Morrislgn Javascript How-To 1 June 3rd, 2004 07:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.