Here you need to change this from View rootView = findViewById(android.R.id.content).getRootView(); to View rootView = findViewById(R.id.imageview).getRootView(); Another thing you can do as follow. ImageView iv; Now find ID for it on onCrate() method iv = (ImageView)findViewById(R.id.imageview); Now in your Method View rootView = iv.getRootView(); UPDATE: Change your xml file like,...
ios,objective-c,uinavigationcontroller,rootview
It can be done but it's complicated. Best to avoid it if possible, and the specific requirements will be different for every app. Without seeing the source code for your app we can't tell you how it's done. The basic process is you need to remove all of them from...
ios,swift,uinavigationcontroller,apple-push-notifications,rootview
Try this code In your method : var rootViewController = self.window!.rootViewController let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil) var setViewController = mainStoryboard .instantiateViewControllerWithIdentifier("CurrentShows") as ViewController_CurrentShows rootViewController .navigationController .popToViewController(setViewController, animated: false) ...
ios,objective-c,uinavigationcontroller,rootview
You can use this approach to get the required results seamlessly, 1) Make HomeNavigationController as the root view controller of your app. 2) In the first view of HomeNavigationController say it HomeViewController, override viewWillAppear and check if you need to show login view ( You may check this by putting...
*****UPDATE**** I uploaded a sample project to demonstrate what I mean. You can find it here: github link Good luck! **** EDIT After talking with you more I'd suggest trying to use something similar to this code in your viewDidAppear method of whatever view controller runs the first tab of...
json,components,sapui5,rootview,openui5
if you are using a Component.js, then in the createContent method, you can return a root view of any type. For example, I have similar metadata config to you, found in my Component.js file. In the same file, I have a function createContent, which is called on Component initialisation, and...