i am unzipping a file on background thread and i am calling HomeViewController on main thread.in this view controller i have a UIBarButtonItem on UINavigationBar.
if i click this button it goes to StoryViewController and the unzipped data is used there. so i want to show the Home view Controller though the unzipping process is not completed, for that i have to hide the button on the navigation bar when the unzipping starts on backround thread and after completion of the upzipping again i have to show the button on navigation bar. i am calling the methods of homeViewController to hide and show..
What i have to write in those methods..? i mean how to hide and show the uiBarButtonItem on UINavigationBar….?
Thanks….
How to add bar button to uinavigationbar in iphone
here is the answer..