Questions tagged [uiwindow]

The UIWindow class defines objects (known as windows ) that manage and coordinate the windows an application displays on the screen.

In iOS, windows and views are used to present application’s content on the screen. Windows do not have any visible content themselves but provide a basic container for application’s views. The two principal functions of a window are to provide an area for displaying its views and to distribute events to the views. The window is the root view in the view hierarchy. A window belongs to a level; the windows in one level appear above another level. For example, alerts appear above normal windows. Typically, there is only one window in an iOS application.

649 questions
0
votes
1 answer

Blank space below the status bar

In app delegate I use [[UIScreen mainScreen] bounds] (which is by default) to set frame for the window. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; But when I try to launch the app, I see blank space between my…
Randex
  • 770
  • 7
  • 30
0
votes
2 answers

iOS splash screen black window

Hi I just wondered if it is possible to change the colour of the black view that appears when you first launch an app. I am using a transparent splash screen image and wondered if possible to change the colour of this view/window or whatever it is…
Alex McPherson
  • 3,185
  • 3
  • 30
  • 41
0
votes
2 answers

UIWindow makeKeyWindow returns an EXC_BAD_ACCESS

[[[[UIApplication sharedApplication] delegate] window] makeKeyWindow]; I've been trying to look up another way to do this exact same action but I haven't found anything. What happens is when this is fired, the debugger returns error: Execution…
Anthony Castelli
  • 567
  • 6
  • 17
0
votes
2 answers

Get the current UIView's ID objective-c iphone

How can I get the current UIView's ID so that I can use it later without using an IBOutlet? I would like to add an image over the top of my app but I'm switching views frequently and would like to be able to add the image to the current view because…
atomikpanda
  • 1,845
  • 5
  • 33
  • 47
0
votes
4 answers

Show splash screen only once IOS

I understand, Its a HIG violation to play around with the default launch icons and splash screens, but I have requirement such that, I need to display the splash screen only for the first time, Is it possible to implement it ? One simple solution, I…
Kiran Kulkarni
  • 1,434
  • 2
  • 18
  • 40
0
votes
3 answers

DidFinishLoading view change

I have a login screen view and 5 tabs in the app.I want when I done with the LoginScreen and it should move to the Tabs views(5) .for this once Login Task is done,I have to remove the view and add the another view controller of the tab..how to do…
Christien
  • 1,213
  • 4
  • 18
  • 32
0
votes
1 answer

After "dismissing" UIWindow, cursor on search list is missing

I created a custom UIWindow, UIViewController, and UIView in order to present a full-screen overlay for various screens through an app. Display, rotation, and dismissing the overlay works great. However, the problem is that after dismissing the…
NovaJoe
  • 4,595
  • 6
  • 29
  • 43
0
votes
2 answers

keyboard changed height

![enter image description here][1]keyboard get out of screen at bottom little bit when i try to add window as subview having view inside it. How to fix it? Here is my code. keyboardWindowFrame = nil; keyboardWindowFrame = [[[UIApplication…
Ketan Shinde
  • 1,847
  • 4
  • 18
  • 38
0
votes
2 answers

UIWindow rootviewcontroller - wrong orientation

I am developing an iPad application where the user just can (in some cases) open the app, if he types in a password. Therefore I need something like a LoginViewController. But first, let us handle the common case, where the app just needs to…
Alexander
  • 7,178
  • 8
  • 45
  • 75
0
votes
1 answer

How to get touch coordinates REGARDLESS of what "view" I may have touched?

In my ViewController, I have a UITableView with some custom cells in it. When I touch a cell I want to get the touch coordinates right there into my UIViewController. The problem is, I can only get coordinates from parts of the screen not occupied…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
0
votes
2 answers

issues on Orientation iOS

I'm developing an app that supports only portrait orientation as written in my Info.plist file. But when i Rotate the device the status bar rotates but the views don't. I don't use the InterfaceBuilder to set my views and initial window, I…
Cers
  • 169
  • 1
  • 11
0
votes
2 answers

UIViewController or UIView as a hud on top of UIWindow?

I want to present a UIViewController with a UIView on top of my application wherever I am in the application. I want to add this to the UIWindow as a hud view. Is this possible? How should I start approaching this?
Jacob
  • 1,310
  • 1
  • 15
  • 29
0
votes
1 answer

Make visible ViewController inactive

I have UIWindow and it's rootViewController has blue background and allow all kind of orientation changing: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } Then I create new UIWindow…
Injectios
  • 2,777
  • 1
  • 30
  • 50
0
votes
1 answer

iOS: Window object is nil

I had an app delegate and I needed to add custom tab bar controller to override UITabbarController. I have created Window user interface, reference Window to Appdelegate's Window object. made File's owner to UIApplication, added NSObject and changed…
0
votes
1 answer

Detect touch event on global UIWindow object

I have created a UIWindow global object for my application like #define APP_DELEGATE_WINDOW ((UIWindow*)((AppDelegate*)[[UIApplication sharedApplication] delegate])).window Now in one UIViewController, I m adding a subview with a transparent…
Kanan Vora
  • 2,124
  • 1
  • 16
  • 26