I have created a navigation controller. In the second view (which is pushed), I have some webservice call and placing a overlay view and setting
self.view.use
You can do the following if you are running on Swift
Swift
self.navigationItem.rightBarButtonItem?.enabled = true
This snippet will disable the button.