tags:

views:

174

answers:

1

Hi Guys,

I want to disable the left bar button when my webview is loading can any one tell how to disable the leftbarbutton?

Anyone'shelp will be much appreciated. Thank you, Monish.

A: 

Set the enabled property of the leftBarButtonItem to NO.

KennyTM
I tried like this but the button was not disabled yet.can u please giv any other suggestions?self.navigationItem.leftBarButtonItem.enabled = NO;
monish
@monish: Is that the left bar button item or the back bar button item (which is pentagonal) you want to disable?
KennyTM
yes the back bar button which is pentagonal shape.....I need to disable that.
monish
@monish: You need to set `enabled` for the `backBarButtonItem` property. If this doesn't work then there's no AppStore-friendly way to disable that. (You can hide it with `-setHidesBackButton:animated:`, however.)
KennyTM
Yes I tried enabling the backBarButtonItem but its not working.only hidesBackBarItem is working.
monish