Questions tagged [rootview]

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

148 questions
1
vote
2 answers

Android Screen Capture using root view

I am trying to capture the screen View decorView = activity.getWindow().getDecorView(); decorView.setDrawingCacheEnabled(true); Bitmap bitmap = decorView.getDrawingCache(); Everything is working fine, I am able to take the…
Vikash
  • 213
  • 5
  • 15
1
vote
3 answers

self.window.rootViewController.presentedViewController returning nil

self.window.rootViewController.presentedViewController always returning nil though there is viewController available. Not sure what i am doing wrong. Below is the full code- - (UIInterfaceOrientationMask)application:(UIApplication *)application…
iosDev
  • 604
  • 3
  • 12
  • 28
1
vote
0 answers

How to avoid Presenting view controllers on detached view controllers

I have 4 storyboards : Intro (Root), Loading, ChooseHouse, Home If user logged i set Loading as root for loading data of that user like that on my didFinishLaunchingWithOptions method : func application(application: UIApplication,…
YouSS
  • 560
  • 7
  • 20
1
vote
1 answer

How to Change Root View from anywhere in appliction in iOS

I have developed an app without storyboard. I have a functionality of Logout. When user click on logout then I have to redirect him to the sign in page and clear all navigation stack and make sign in page root view. I am trying with this code but…
Rahul
  • 5,594
  • 7
  • 38
  • 92
1
vote
1 answer

Open a View that is not the root one and keep the tabbarcontroller from the root view (swift)

Hi guys I have an application with a view organization like the picture bellow: Views: My Application has to open View B (from the picture) when an user opens an attachment (I have another question Open specific view when user opens an attachment…
JuValencia
  • 212
  • 1
  • 3
  • 17
1
vote
2 answers

iOS App: Swapping rootviewcontroller after performing login using swift has significant delay

Hi I am using following function to swap from current root view controller to a new root view controller after saving the users "username" in an internal database. Although the code works and I can make a switch but it take very long to transition.…
kmakma
  • 73
  • 9
1
vote
1 answer

Center UIButton to View

I'm trying to center a UIButton to rootView. I've tried with this code: self.startNewCross.center = CGPointMake(self.view.center.x, self.startNewCross.frame.origin.y); but it doesn't work, then I've tried to center the background image to…
Giulio
  • 221
  • 2
  • 15
1
vote
3 answers

Swift didReceiveRemoteNotification - Navigate to rootviewcontroller no matter where in app user is located (Now With Error Message)

Upon receiving push notification in the IOS Swift app, I would like to do two things based on content in notification: Either navigate to screen (deeplink) so i would have to navigate from rootviewcontroller through several screens. Navigate to…
1
vote
1 answer

SAPUI5 Component Metadata rootView Parameter for JSONView

Has anyone been able to specify a JSON view in the rootView parameter in the metadata of SAPUI5(or OPENUI5) component. My ultimate goal is to implement something similiar to this "Best Practices" demo app using JSON views. In the "Application Best…
Thomas Matecki
  • 629
  • 5
  • 20
1
vote
1 answer

MMDrawerController not rootViewController

I'm using MMDrawerController in my project and I don't want it to be the rootViewController. Also I'm using storyboard to set the UI. Most sample code doesn't present like this. So I'm a little confuse how to do it. I've set a FirstViewController…
Jenny
  • 351
  • 3
  • 19
1
vote
1 answer

Setting TabBarViewController as Root View in AppDelegate on launch

This question might seem a bit silly but I've been searching for some time now for an answer but I couldn't find one. So I'm developing an app that integrates Parse push notifications between clients. The app has a UITabBarController…
RB12
  • 25
  • 5
1
vote
1 answer

How to set the rootViewController to point to the address of a pointer

Summary: the rootViewController is set to a pointer. I change the pointer and rootViewController doesnt change. I set my rootViewController set to a pointer to a view controller called 'currentViewController'. change 'currentViewController' to…
user1709076
  • 2,538
  • 9
  • 38
  • 59
1
vote
4 answers

select RootViewController in appdelegate after asynchronous request

I try to explain my problem. In appdelegate I have to select a rootViewController depending on the result of an asynchronous request (I'm using AFNetworking framework). In fact, I need to know if my user is profiled or not: if he is profiled I can…
Luciano
  • 1,208
  • 2
  • 17
  • 36
1
vote
1 answer

How to reload rootViewController from appDelegate

I have a UINavigationController and on it I load a rootView that controlls the login process to my application. I have recently added some code to my application delegate that checks my settings bundle for a logout request when this logout request…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
1
vote
3 answers

Black screen after App Startup

I'm setting First viewController which will appear on App Startup. That's my AppDelegate.h: #import "AppDelegate.h" #import "TutorialController.h" // a simple UIViewController @implementation AppDelegate @synthesize window; -…
Matte.Car
  • 2,007
  • 4
  • 23
  • 41