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

How to activate the keyboard from a UITextView on a (secondary) UIWindow

My iPhone app (based on the "Single View Application" of Xcode) has a UITextView (say: myTextView) that I want the user to be able to edit. I was setting it to editable, and all was working fine (I didn't even have to invoke…
Gik
  • 528
  • 5
  • 18
0
votes
1 answer

Showing a UIWebView modally on top of whole application through UIWindow from class inherited from NSObject?

I have a class which works with social networks related stuff. At some point it may want to put up a UIWebView modally. It may not know which view controller is working at the moment. May I show WebView through UIWindow?
Ilya Lapan
  • 1,103
  • 2
  • 12
  • 31
-1
votes
1 answer

How to make new opened UI windows in Unity automatically offset? Like Windows File Explorer dose?

I'm developing an Unity app which can use bookmark buttons open multiple internal browser windows. For now, I make the browser Prefab, and instantiate it for open multiples simultaneously. But the windows will overlay together, users won't know if…
Chenchen
  • 35
  • 6
-1
votes
1 answer

Is SceneDelegate mandatory?

The question says it all. There's the following line in apple documentation, Scenes are opt in, but you must support them if you want to display multiple copies of your app’s UI simultaneously. It's not mentioned whether the SceneDelegate is…
NightFuryLxD
  • 847
  • 5
  • 15
-1
votes
1 answer

'keyWindow' is deprecated: first deprecated in iOS 13.0 in Objective-C

This is my simple button action to show a XIB file which is actually a bar code scanner in Objective-C. - (IBAction)startCamera:(id)sender { BarcodeVC * controller = [[BarcodeVC alloc] initWithNibName:@"BarcodeVC" bundle:[NSBundle…
User1075
  • 819
  • 15
  • 36
-1
votes
1 answer

multiple windows arrangement by setting window.windowLevel works on iOS 13 but not on iOS 12

In our application, we present 3 viewControllers on 3 different UIWindows. We had issue with arrangement of these modals. I tried to fix the issue by adjusting the window.windowLevel property for each UIWindow. For some unknown reason, the fix works…
Haseeb Iqbal
  • 1,455
  • 13
  • 20
-1
votes
3 answers

Swift / Xcode - Unwrapping an Optional value

When I try to unwrap "var window" using "!" it shows the Optional value is nil. Fatal error: Unexpectedly found nil while unwrapping an Optional value var window: UIWindow? // image to be animated let backgroundImg = UIImageView() func…
Mathias
  • 41
  • 7
-1
votes
1 answer

How can I refresh the app screen programmatically?

A UI component in my app has a minor but nasty visual glitch. The glitch goes away completely if I rotate the device to landscape and back to portrait. So, maybe there is an easy way to reproduce such full refresh of the whole scene…
Alex Cohn
  • 56,089
  • 9
  • 113
  • 307
-1
votes
1 answer

How to show and hide the keyboard with a subview

I have a custom UIView that is a subview on a UIViewController. I have it added in my storyboard and set it to Hidden. My subview is also within another UIView that I'm using as a 'blur view' which is also initially Hidden. I have functions that…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
-1
votes
1 answer

In Xcode view-based Interface Builder, Can you use the makeKeyAndOrderFront with a simple UIWindow?

If not what's the difference between NSWindow and UIWindow? And how exactly would I implement this makeKeyandOrderFront function? Here's all the code I have so far. // // DisappearanceViewController.h // Disappearance // // Created by Angelo…
user640250
  • 31
  • 2
  • 3
-1
votes
1 answer

Is the navigation controller's root view controller the same as that of the window's when set?

Just a question I have that doesn't appear to have been directly answered here before. I have a simple app using storyboard which has a navigation controller set as the initial view controller in the storyboard, and the first view controller set as…
cheznead
  • 2,589
  • 7
  • 29
  • 50
-1
votes
1 answer

Custom UIwindow not display

I'm trying to create a new window for Custom alert on rootViewController. - (void)viewdidAppear { UIWindow *newWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; newWindow.windowLevel =…
xx11dragon
  • 166
  • 1
  • 10
-1
votes
2 answers

set appdelegate' window rootviewcontroller

In Home ViewController based on user selection I will have to load selected viewcontroller. For this I am changing AppDelegate.window.rootViewController to the navigationcontroller inited with selected view controller. Ex: navigationController =…
Srivathsa
  • 606
  • 10
  • 34
-2
votes
3 answers

Creating an "App wide constant"

I want to have a settings toggle on my apps first screen. This setting toggle will control a "variable" that can be referenced in different views. For instance, on my main view (the first one that shows when the app loads) I have a table. Each cell…
user804306
  • 777
  • 1
  • 8
  • 15
-2
votes
1 answer

getting bugs with viewController instantiation from SceneDelegate

So my goal is to be able to show the right vc without any bugs. There's actually multiple bugs with this issue. First it would make sense to show the block of code and explain it first so you can get some context on what I'm talking about. In my…
1 2 3
43
44