Questions tagged [rootview]

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

148 questions
0
votes
2 answers

Application windows are expected to have a root view controller

I have received a project from a client that I need to compile, but when I run it gives error Application windows are expected to have a root view controller at the end of application launch and EXC_BAD_Access (code=2, address=0x0) as far as I know…
Ankur Arya
  • 4,693
  • 5
  • 29
  • 50
0
votes
1 answer

RootviewController and viewControllers rotation

I have a problem with my app. I would like lock rotation on specific view. For that, I use rootviewcontroller which contain two custom viewControllers. I have try to override the shouldAutorotateToInterfaceOrientation method on my two…
tryp
  • 1,120
  • 20
  • 26
0
votes
3 answers

Unable to navigate to next page iPhone

I am new to iPhone developer, I have 4 page in my Application, my Application is viewBasedApplication. I made my 1st page(LicAppViewController) as RootViewController, here is my code. - (BOOL)application:(UIApplication *)application…
Krunal
  • 6,440
  • 21
  • 91
  • 155
0
votes
2 answers

UINavigationController root view (iOS)

[PersonListNav pushViewController:plist animated:FALSE];Hi there! :) Googling this has returned no luck... In short, I have UINavigationController (Named PersonListNav) which is instantiated inside of my main xib... I also have a custom view…
Georges Oates Larsen
  • 6,812
  • 12
  • 51
  • 67
0
votes
1 answer

Initializing root view controller with myViewController / Using split view(sliding navigation) controller

I'm working on adopting slide (split) view controller to my project. JT, DD, ZUUI, JW, ECS..... All these sources suggesting initialize my root view controller in appDelegate. Something like this.... MyMainViewController *controller =…
Ghostino Doggio
  • 351
  • 1
  • 4
  • 11
-1
votes
3 answers

Can't remove view from root view

i add the view to the rootview in that way private RelativeLayout addThisView; private View rootView; LayoutInflater inflater = LayoutInflater.from(mContext); addThisView = (RelativeLayout) inflater.inflate(R.layout.loading_temp_cover, null,…
Farukest
  • 1,498
  • 21
  • 39
-1
votes
1 answer

iOS: How to call root controller from another view controller

Following code works to call root controller from AppDelegate. However it does not work when I put it in a separate login View Controller. After a successful login, I want to load the regular View Controller. However within the login VC, it does…
user1904273
  • 4,562
  • 11
  • 45
  • 96
-1
votes
1 answer

How to take screenshot of an imageView?

This is how do i get root view: View rootView = findViewById(android.R.id.content).getRootView(); It works for me to take screenshot of rootview. But my question is how to define only an imageView for this View? Then only i can take screenshoot of…
Umit Kaya
  • 5,771
  • 3
  • 38
  • 52
-1
votes
1 answer

getHeight() of a view always returns zero?

I want to check if soft keyboard is visible on screen. For that I found a code and tried it as given . But both activityRootView.getRootView().getHeight() and activityRootView.getHeight() returns zero . I need your expert view. Code: LayoutInflater…
user177913
  • 465
  • 2
  • 8
  • 19
-1
votes
2 answers

Get param from ViewController in AppDelegate.

I need to get in AppDelegate one parameter of some ViewController. It not root for AppDelegate. What is faster way to do it? Delegation?
-1
votes
1 answer

Dismissing and presenting a view controller makes a previous controller appear

I am trying to get this method working correctly, but for some reason this function makes a previous controller (start up controller) appear instead of displaying the home controller.When I exit the start up controller my home controller shows up…
-2
votes
1 answer

Exception: android.widget.LinearLayout cannot be cast to android.widget.ImageView

I need to set the images to grid view dynamically. but i'm getting exception: android.widget.LinearLayout cannot be cast to android.widget.ImageView I need to get the view of the grid without onclick. So please help me. private void…
gStephin
  • 332
  • 3
  • 20
-2
votes
2 answers

Multiple Master-Details with root view - iOS

I have a master-detail application. The master scene is a tableview and the detail is a simple view controller with some text. I'd like however to have more than one master-detail (one for every topic), and a homepage, with images / buttons. When I…
1 2 3
9
10