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 answers
Related Questions in UIVIEWCONTROLLER
- Ignoring actions with views in viewDidLoad
- Setup the constrains between the UIView and UIViewController
- Children view controllers must have a common parent view controller in swift
- Adding two UIView vertically
- UICollection view is not rendering properly
- How to delete UINavigationController's space programmatically using Swift?
- AdMob rewardedInterstitial in SwiftUI with UIViewControllerRepresentable . . updateUIViewController triggered too many times
- someone help or explain why the view looks like this and it doesnt take me to the new view controller
- UINavigationController glitchy animation when pushing new view controller
- Background of ViewController disappears for a split second when dismissing a view controller on top of it
- How To: Simple UIViewController w/ .xib using XCode15
- Using NotificationCenter to Pull UIViewController Up After Sending FCMessage
- How to fade up initial root view controller to reveal new background root view controller
- Delegate returning nil even though delegate has been set
- Can't make changes in View from Controller
Related Questions in IOS9
- How can I resolve 'allowsBackgroundLocationUpdates' error in flutter
- Can't install Firebase distribution builds on devices using iOS 9
- Got a EXC_CORPSE_NOTIFY symbol crash, Not able to track what when wrong
- How to run iPad 2 with iOS 9 emulator on Xcode 12?
- framer-motion ios 9 compatibility
- UNUserNotificationCenter alternative for iOS 9
- ReacJS not rendering component on iOS 9 iPad
- Error when presenting view controller containing a WKWebView IOS9
- Unble to access public class of Swift embedded framework in objective-c project
- UIApplicationOpenURLOptionUniversalLinksOnly causes crash on iOS9 even though it's enclosed in an @available condition
- Xcode Error: Could not instantiate class named _UIScrollViewLayoutGuide
- iOS 9 Video Interstitial Ads crash
- Swift Package minimum ios version
- How to differentiate code based on iOS version during compile time
- Remote debug safari ios9 and MacOs 10.13
Related Questions in UIWINDOW
- why does write addSublayer twice to block screenshot in swift?
- SwiftUI detect top notch and safe area insets
- Touch action not working with top level custom UIWindow for overlay
- How to bring UIView in front of keyboard in Xcode 14 | Swift?
- "Remember User" in SignIn Screen does not direct to Main Screen in Swift. (window is nil)
- Update UIWindow var in AppDelegate from another target
- How to make new opened UI windows in Unity automatically offset? Like Windows File Explorer dose?
- Is SceneDelegate mandatory?
- UIWindow in SceneDelegate
- How can i insert UIView between UIWindow and all the views it has and will contain in Swift
- A view jumps on top after a clicking on a button
- External Display View Bounds to Match TV Resolution
- External Display Crashing On Adding Subview
- Window hide doesn't deallocate memory
- Use overrideUserInterfaceStyle on all active windows
Related Questions in SPLIT-SCREEN-MULTITASKING
- Disable split screen mode for android launcher
- iPad Multitasking: dismiss the keyboard running in another app
- Is there any way to disable split screen (view two apps side-by-side) for particular screens/ViewControllers?
- how do I split ultrawide monitor into virtual monitors on a mac?
- how to switch between two screens in kivy python?
- Apple multitasking / split view resizing issues
- Is there a way of automating multitasking on the iPad via XCUI tests for iOS 13
- How to add timer to each divide screen in tkinter
- How to switch between Android apps programmatically
- Is it possible to have 3 or more applications visible to the user on an android device?
- Opening keyboard in iOS cordova app when in split view (multitasking) shifts view port
- Disable split screen mode for all apps in Android
- Update constraints on changing the window size of application in Split Mode Screen
- Are there any native callbacks from iOS while using splitView?
- Respond to split-screen changes in Xamarin.Forms
Related Questions in SPLIT-SCREEN
- Is there a way to programatically exit split-screen or free-form window mode in Android?
- Android how to detect apps running in split screen mode
- Using a usb camera and a Raspbery Pi Zero 2W to create a fake stereo image
- 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
- How to identify the tabs for displayed code in split-screen views?
- Split-screen in Godot 3D with a single Scene containing 2 cameras
- How do I make a live server split screen using visual studio code?
- How to enable Split Screen Icon?
- Android “taskbar-style” launcher which doesn't obture a part from the application window
- I've Xamarin android application which redirects user to browser for login process. But on android 13, browser opening in split screen mode
- Animation while playing media with ExoPlayer
- startActivities to start a split screen is not working for Android 13 anymore
- unable to properly render a react split-screen component using grid and styled-components
- Getting vim to show the lines relative to other screen in splitscreen?
- Android: Failing to open an activity in adjacent screen in multiwindow
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?
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)
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]; } }