Questions tagged [rootview]

In view based mobile application(iOS/Android) rootview provides interface between window and otherview.

148 questions
0
votes
1 answer

Heyzap Ad Mediation, only work for rootviewcontroller

I started using Heyzap today to integrate multiple ad networks in my iOS project. The integration went well as shown in the image below. However, I run into problems while trying to show ads. I get warning messages saying that the ads are getting…
Yanyan
  • 92
  • 9
0
votes
2 answers

Changing root view controller in the background

I have the following view controllers stack. First, my app will show an app tour page. (Say TourViewController - super class is UIViewController). Added this controller in AppDelegate as rootviewcontroller. self.window.rootViewController =…
Confused
  • 3,846
  • 7
  • 45
  • 72
0
votes
0 answers

when i logout and open the app again it goes into rootview not login iOS

I have made a app with the rootview the inbox. i then logout and it goes to login page which is fine but then when i close the app and open it again it goes to inbox. i am using parse.com and have implemented this code into inbox view did load. -…
smithyy
  • 220
  • 2
  • 12
0
votes
0 answers

How to call view from DatePickerFragment

package org.jaberrio.personai2; import android.app.DatePickerDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.Context; import android.os.Bundle; import android.widget.DatePicker; import…
Jaberrio
  • 5
  • 4
0
votes
1 answer

Add UINavigationController to navigation stack

I have two UINavigationControllers like this: LoginNavigationController -> LoginView HomeNavigationController -> HomeView -> ... From LoginView I navigate to HomeView modally like this: [self presentViewController:HomeNavigationController…
puzzler
  • 218
  • 3
  • 13
0
votes
2 answers

iOS skipping login view with rootViewController causing black bar bug in nested TableViews

I'm skipping my initial view controller (a login page) once a user successfully logs into my app and chooses to store their credentials. My new root view controller is a TabBarController because my app's navigation uses a TabBar. However, within…
Mary Martinez
  • 314
  • 5
  • 12
0
votes
0 answers

How to manage logincontroller in tabbar based ios application?

I have a tabbar based application and it has login & signup as well. Currently my rootviecontroller is loginVc i.e navigationcntl -> loginVC. After successful login, user goes to the 3rd tab inside the application. Each tab inside shows data based…
0
votes
0 answers

Set UINavigationController as root view controller for UINavigationController

It might sound a little bit unusual, and before anyone asks why would anyone be doing this - it seems that this can't be done programatically, while in storyboard you can set reference from one UINavigationController to other to be his root...
MegaManX
  • 8,766
  • 12
  • 51
  • 83
0
votes
1 answer

Logging off ios app and returning to RootViewController

I created a RootViewController in my app delegate like so: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]…
cdub
  • 24,555
  • 57
  • 174
  • 303
0
votes
0 answers

How can I view my PFQueryTableViewController from my NavigationViewController

When my app starts up I want the rootViewController to be the NavigationViewController and then I want the first screen to display my PFQueryTableViewController. I have the exact same code working on my other project, where instead of…
0
votes
0 answers

Android code to get screenshot from background service

I want to create a background app which will take screenshots of the actively running apps at some fixed time interval. I have tried the following code which works fine if we call from activity. private Bitmap takeScreenshot() { View rootView =…
0
votes
1 answer

Go to rootView from another view when a button tapped

I am using to change tabs (rootView) programatically by using this code: NSInteger tabitem = tabBarController.selectedIndex; [[tabBarController.viewControllers objectAtIndex:tabitem] popToRootViewControllerAnimated:YES]; But when I want to use a…
cvdogan
  • 166
  • 1
  • 1
  • 13
0
votes
1 answer

Incorrect View Hierarchy: Presenting view controllers on detached view controllers is discouraged

I've been receiving a warning that is related to my use of the GKTurnBasedMatchmakerViewController and the BannerViewController for iAd. That warning is: Presenting view controllers on detached view controllers is discouraged
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
0
votes
1 answer

How to check if the current presented view controller is MPMoviePlayerController?

I tried this to get the current view controller and check if its a kind of class of MPMoviePlayerController or not but it always returns the last view controller before the…
Iman
  • 1,097
  • 2
  • 11
  • 19
0
votes
0 answers

iOS app UI has been pushed down due to Call Notification

Here is the scenario. Before launching my app, I make a phone call. Then I open my app, the status bar height has doubled due to call notification. and because of that, the entire UI of my app has been pushed down by additional 20pt. Switching back…
xialin
  • 7,686
  • 9
  • 35
  • 66