Questions tagged [keywindow]
29 questions
0
votes
3 answers
KeyWindow add subView, did not shows in the front
I use keyWindow to add a subView, it add success but did not shows in the front of the screen hierarchy.
The deep gray view is my added view:
My code is:
@interface ViewController ()
{
LMLUpspringView *pop_v;
}
@end
@implementation…

s-n-2
- 405
- 1
- 6
- 24
0
votes
1 answer
loading childViewControllers first time logging in
I have been struggling with an issue for loading child ViewControllers. The first time I log in it shows the containerView but without the childViewControllers loaded. When I close the app and re-open the app with the logged in state saved the…

user3708224
- 1,229
- 4
- 19
- 37
0
votes
0 answers
How to restore keyWindow (NSView - Appkit)
I have some code which opens a modal window (itself composed from a few views) and makes it closed when we click anywhere on it.
here is some part of code:
int myFunc()
{
// Create views
NSPanel *panel = ...;
CustomNSTextView *…

Nathaniel Perez
- 21
- 5
0
votes
0 answers
Getting keyWindow nil inside Framework
I am making a framework where I need to get keyWindow inside framework to add some view on it.When trying to get by usual way UIApplication.sharedApplication().keyWindow then every time it is returning nil.
Is it possible to get keywindow inside…

Sunil Sharma
- 2,653
- 1
- 25
- 36
0
votes
1 answer
Add UIView to KeyWindow, How to Animate UIView Off Screen When pushViewController is Called?
I have added a UIView to my [UIApplication sharedApplication].keyWindow and it is working properly.
When a button on the UIView is tapped, I want to push a new UIViewController onto the underlying NavigationController
This all works, but how can I…

Chris
- 5,485
- 15
- 68
- 130
0
votes
1 answer
Unexpected NSWindow becomes key window
I have a main NSWindow in my application with a button. When the button is pressed it does something like the following:
NSWindow *newWindow = [NSWindow initWithContentRect:[screen frame] styleMask:NSBorderlessWindowMask…

DanielGibbs
- 9,910
- 11
- 76
- 121
0
votes
1 answer
Swift: UIView.insertSubview( , aboweSubview) doesn't work on iOS 8
This have been bugging me for some hours now, and i can't seem to find a solution :(.
I have a UITableView, and when i click on a row i want to show a detailed information for that row in a "Card". I add the card in the keywindow because i want it…

Ibrahim Yildirim
- 2,731
- 2
- 19
- 31
0
votes
1 answer
UIApplication sharedApplication keyWindow - iOS App Widget
I have a simple app and widget for iOS 8. I am making use of the UIImage+ImageEffects source files. One of the functions in that library is called "convertViewToImage" which contains the following code:
+ (UIImage *)convertViewToImage
{
UIWindow…

Supertecnoboff
- 6,406
- 11
- 57
- 98
0
votes
1 answer
View is not in the window hierarchy
I'm encountering with a weird issue on iOS 8 the latest beta.
My view is disappearing from the window hierarchy in oppose to iOS7 - basically I'm replacing my UINavigationController with a new one at some point.
This code worked with no issues until…

Tomer Peled
- 3,571
- 5
- 35
- 57
0
votes
1 answer
Add view in MoviePlayer Full screen iOS 6
I want to add a custom view (Customize bar) in mpmovieplayercontroller in full screen. I tried below code:
[[[UIApplication sharedApplication] keyWindow] addSubview:self.viewMediaControls];
Its working fine in iOS 5 but its not working in iOS 6. So…

Mitesh Khatri
- 3,935
- 4
- 44
- 67
0
votes
4 answers
keywindow is not working in ([[[UIApplication sharedApplication] keyWindow] addSubview:myView];) iOS 6
I am using below code to display a window over movie player controller:
[[[UIApplication sharedApplication] keyWindow] addSubview:myView];
Its working fine in iOS 5 but it stopped working in iOS 6. Even window is not displaying in iOS 6. So please…

Mitesh Khatri
- 3,935
- 4
- 44
- 67
0
votes
1 answer
Cannot become the key window after setting the window to a fake full screen on OSX 10.6.8
My application initially had a window (Def). Then it spawned a new window (New). All the two windows can be switched from the Window sub menu item or by the space control.
But if I tried to set the "New" window to a fake full screen mode on OSX…

Jack Seraph Mu
- 61
- 5
0
votes
1 answer
Disable interaction with main window, while other window is open
I have a main window where all the work is done.
When i open the preference panel I would like to freeze the main windows as long as the preference panel is open.
For example iTunes: as soon as i open the preferences i just can interact with…

Schaltfehler
- 140
- 11
0
votes
1 answer
ios shareApplication rootviewcontroller.frame flip-flops on Y axis
I have an iPad application where I'm moving the application's frame "up" every time the soft keyboard is shown.
[UIApplication sharedApplication].keyWindow.rootViewController.view.frame = CGRectMake(0, 150, 1024, 768);
The clincher is that on some…

Jacksonkr
- 31,583
- 39
- 180
- 284