In view based mobile application(iOS/Android) rootview provides interface between window and otherview.
Questions tagged [rootview]
148 questions
2
votes
0 answers
starting iphone only app on ipad (1x/2x mode) from landscape ignores orientation setting of root view
The iPhone app should mostly be used in portrait mode, but for two views rotation to landscape is allowed. So in the settings all orientations are allowed and in most views, including the root view, rotation is prohibited. Everything works as…

Lem
- 283
- 2
- 11
2
votes
2 answers
How can you add 2 rootviewcontrollers in IOS App using storyboard
I am curious to know if i can develop an app having 2 view controllers .I have gone through some links ,but couldn't find a solution if I'm using storyboard.If i already have a rooviewcontroller,how can i remove it and add another view as…

Suraj K Thomas
- 5,773
- 4
- 52
- 64
2
votes
2 answers
findViewById(android.R.id.content).getRootView() nullPointerException
Why does calling findViewById(android.R.id.content).getRootView() in onPause or onStop return NPE but not when I call it in onCreate?

learner
- 11,490
- 26
- 97
- 169
2
votes
1 answer
Change rootViewController from uiviewcontroller to uinavigationcontroller
I am developing an app that use MFsidemenu for the swipeBar.
My app consists of a loginController which is an uiViewController and after logging it change into an uiNavigationController.
MFsidemenu need this code running on the…

xeravim
- 463
- 7
- 20
1
vote
2 answers
pushViewController and popToRootViewController
My application is using pushViewController to show the navigation controller modally
[navigationController pushViewController:_viewController animated:YES];
Navigation Controller has done button
UIButton* backButton = [UIButton…

user1120133
- 3,244
- 3
- 48
- 90
1
vote
1 answer
Switching view by changing delegate rootViewContoller
I'm presently trying to switch view from a UIViewController to a SplitViewController. I'm currently doing this in my UIViewController:
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[UIView…

Titouan de Bailleul
- 12,920
- 11
- 66
- 121
1
vote
1 answer
Xcode: Navigationcontroller loading UIpagecontrolled view?
users,
i have a problem i cant get my head around, i hope you could help me out;
I'm building a small iphone app that will basically have a topbar(image), groundbar (image) and in the middle a middlebar (scrollview) which is used for PageControll.…

BTZ
- 23
- 6
1
vote
1 answer
Memory is not released when moving back to rootviewcontroller in iPhone
My application starts in a certain view and from there the user can push through several views. When the user reaches the last view I have provided a button to pop to the rootview controller.But the memory which has been increasing through out the…

stack2012
- 2,146
- 2
- 16
- 23
1
vote
1 answer
UISplitView as something other than the root view
I want to use the UISplitViewController in my app but not as the root view for my app. i want there to be several other screens before the one that uses the split view (ie login). the problem is that all the examples i can find have the…

iHorse
- 491
- 1
- 5
- 14
1
vote
2 answers
Setting rootViewController for ipad 3.2 doesnt work
i did a simple navigationbased app.
it works on iphone very well, but it doesnt work on ipad 3.2 simulator and device.
in applicationdidfinish event;
MainViewController *viewController = [[MainViewController alloc] initWithNibName:@"MainView"…

fulberto100
- 313
- 5
- 23
1
vote
1 answer
UIImageView in RootView
I would like to let display gladly in my RootView a UIImage above the table. How can I make that?

NoX
- 11
- 1
1
vote
1 answer
tracking all touch events
Situation
I want to implement a timeout in my app. If the user did not touch the screen within 2 minutes an inactivity fragment will be shown.
What i got so far
I am tracking the activity lifecycle using a custom Application implementing…

Basti
- 1,117
- 12
- 32
1
vote
3 answers
How to go back to the initial ViewController the right way?
I have a few view controllers with navigation bar and tab bar. Then I have an initial view controller with no navigation bar and tab bar. I want to go back to the initial view controller with no other view controllers in stack. Here's what I do:
//…

waseefakhtar
- 1,373
- 2
- 24
- 47
1
vote
1 answer
How can I set rootview of a viewcontroller when I have set Tabbar in appdelegate swift?
I have set UITabBarController in AppDelegate and I have set the root view to tab bar object. But I need to set root view to another view controller without losing the functionalities of tab bar. How can I achieve that?
let vc1 =…

Rakesh Mohan
- 601
- 2
- 11
- 23
1
vote
2 answers
PopToRootViewController by 3rd level, no pop at the barbutton items
I'm pushing to a few viewcontrollers with my UINavigationController and when I'm on my 3rd UISubViewController I coded to 'popToRootViewController' and it pop's back, but the navigationbar-items push to the 2nd view controller not to the 1st..
I…

Christian 'fuzi' Orgler
- 1,682
- 8
- 27
- 51