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
For version iOS 10.3, swift 3:
self.navigationItem.rightBarButtonItem?.isEnabled = false.