My application uses two UIWindows, a first running the main application and a second running some stuff to be shown in foreground of all. Both windows have a view controller. When the split view size of my application changes, viewWillTransitionToSize is called on the main applications UIViewController, but not on the viewController of the second window. When the orientation of the application changes, both methods are called. What can I do, that both viewWillTransitionToSize selectors are called?
1
There are 1 best solutions below
Related Questions in UIVIEWCONTROLLER
- Different storyboard's entry points depending on a parameter
- Labels properties changing in Xcode
- How can I modally present a UIViewController on another Storyboard that's embedded in a UINavigationController?
- iOS - Logout functionality
- How can I prevent the keyboard from covering up subviews on a UIViewController?
- Load a UIViewController with data from .plist
- Presenting a View Controller with a button in a UITableViewCell programmatically (Swift)
- why isnt my second view loading after transition?
- Implementing delegate methods in separate class
- Subclass as delegate of superclass
- Change UIWindow backgroundColor from UIViewController?
- IOS: Transition with modal ViewContorller
- viewControllers that doesn't appear
- passing data, still nil in the other ViewController
- calling parents viewcontroller method when dismissing child viewcontroller
Related Questions in IOS9
- BETA iOS9 deployment to test devices
- CFNetwork SSLHandshake failed iOS 9
- Can UIStackView also be used within a UITableViewCell?
- XCODE 7 App on Device Crashing
- iOS9 with Xcode 7 beta breaks AFNetworking
- Registering for local notification returns UIUserNotificationTypeNone after user chooses "Allow" on iOS9
- NSURLSession/NSURLConnection HTTP load failed on iOS 9
- How do I load an HTTP URL with App Transport Security enabled in iOS 9?
- Find User Name or First/Last Name in iOS9 CloudKit / ABPerson (ABAddressBook)
- Install app on iOS without Apple Developer Program (Xcode 7)
- Xcode 7 beta NSURLConnection error
- Linking error when building Parse in Xcode 7
- Swift 2.0 Core Spotlight API - search only for title
- UIStackView Layout
- Is it possible to opt your iPad app out of multitasking on iOS 9
Related Questions in UIWINDOW
- Cannot pod spec lint because of undeclared type errors
- Can we create an iOS app without UIWindow?
- error when adding constraints to a view I added to UIWindow?
- How to update UIWindow based on changes to another UIWindow?
- Share data between two UIWindows
- iOS7 UIWindow wrong height after status bar hidden
- UIWindow overlay not visible
- iOS 8 / 7 UIWindow with UIWindowLevelStatusBar Rotation issue
- UIPopover dimming view not following screen orientation
- Use of UIWindow to prevent extra addSubview: call in client code
- convertPoint toView not getting absolute position on screen
- UIView "stealing" touch from UITableView
- iAd banner on UIwindow view crashes app
- ios touch location without uigesturerecognizer
- iOS App is creating two UIWindow
Related Questions in SPLIT-SCREEN-MULTITASKING
- How to Enable/Disable app to multi task in Android 7.0 or above Naught?
- how do I split ultrawide monitor into virtual monitors on a mac?
- iPad Multitasking: dismiss the keyboard running in another app
- Disable split screen mode for android launcher
- onConfigurationChanged not called when moving to 1/3 screen width
- How to switch between Android apps programmatically
- How to disable the feature of split screen in nougat in android through programatically?
- Is there any way to disable split screen (view two apps side-by-side) for particular screens/ViewControllers?
- Is it possible to have 3 or more applications visible to the user on an android device?
- Programmatically open app in split screen
- Update constraints on changing the window size of application in Split Mode Screen
- Sharing UDP Data across apps (background/foreground or Split screen multitasking) in iOS
- Disable split screen mode for all apps in Android
- Apple multitasking / split view resizing issues
- iOS9: UIViewController: viewWillTransitionToSize is not called on split view changes when viewController is running in a second UIWindow
Related Questions in SPLIT-SCREEN
- Matlab - combine two videos into a single split-screen video
- Samsung Multi Window stops working
- How to create VR split screen using OpenSpace3d?
- Android API 24 : split screen - activity does not start back stack's activity when destroyed
- AvcaptureSession enabled during Splitscreen
- Status bar icons color in vertical Multi-window Mode if the app window is in the second position
- Split-screen in Godot 3D with a single Scene containing 2 cameras
- How to identify the tabs for displayed code in split-screen views?
- How to keep the windows casting ( WinKey + K) always open in the background so whenever i am using my tablet - I can connect right from the tablet
- Using a usb camera and a Raspbery Pi Zero 2W to create a fake stereo image
- How to view two jupyter notebooks on the same screen (I have just one monitor) using a Mac?
- Can't resolve symbol FLAG_ACTIVITY_LAUNCH_TO_ADJACENT
- Need support for Split screen support React native Android
- How do I implement split screen for iPhone Xs Max in landscape orientation?
- Unity - split screen touch input randomly stops working mid-game
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As an workaround I'm observing the main application window size ...
[[UIApplication sharedApplication].delegate.window addObserver:self forKeyPath:@"frame" options:0 context:0];... and update the layout of the second window content:
-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if (object == [UIApplication sharedApplication].delegate.window) { [self updateLayout]; } }