user2384583 user2384583 - 5 months ago 8
Objective-C Question

how to check the navigationcontroller title

I am developing

UINavigationController
based application. I placed the title to separate the pages. If I move to the first page , I set the title

self.navigationItem.title=@"First";


If I move to the second page

self.navigationItem.title=@"Second";


and it is working fine. But as I move to the third page, I'm setting the title yet it shows < Second Third

Anyone knows how to check if the
UINavigationController
title is present or not.

Answer

on your Third ViewController add the following code in ViewDidLoad and try once

[self.navigationItem.backBarButtonItem setTitle:@" "];
Comments