kiri
kiri

Reputation: 2007

How to remove back button action while page is loading

In my project i have a list when select on a item it will take to next controller using PushViewController. When i go there i will get data using libxml parser. But when i am clicking on the back button while loading it is showing exception. So i want to disable back button action till loading of data is completed how can i handle it.

Thank You

Upvotes: 0

Views: 206

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96976

In your view controller:

[[self navigationItem] setHidesBackButton:YES animated:YES];

This is documented here.

Upvotes: 1

Related Questions