Close Menu
geekfence.comgeekfence.com
    What's Hot

    Generative AI Music Attribution Rethinks Royalties

    June 17, 2026

    Subsea cable security: Focusing on reality over fear with UltramapGlobal

    June 17, 2026

    The Case Against Building Your Own Agent Platform – O’Reilly

    June 17, 2026
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    Facebook Instagram
    geekfence.comgeekfence.com
    • Home
    • UK Tech News
    • AI
    • Big Data
    • Cyber Security
      • Cloud Computing
      • iOS Development
    • IoT
    • Mobile
    • Software
      • Software Development
      • Software Engineering
    • Technology
      • Green Technology
      • Nanotechnology
    • Telecom
    geekfence.comgeekfence.com
    Home»iOS Development»ios – UITabBarController on iPadOS 18 swallows all touches even with mode = .tabBar (via Python/rubicon-objc)
    iOS Development

    ios – UITabBarController on iPadOS 18 swallows all touches even with mode = .tabBar (via Python/rubicon-objc)

    AdminBy AdminJune 17, 2026No Comments2 Mins Read1 Views
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    ios – UITabBarController on iPadOS 18 swallows all touches even with mode = .tabBar (via Python/rubicon-objc)
    Share
    Facebook Twitter LinkedIn Pinterest Email


    I’m building a Python iOS app with Toga 0.5.x (Briefcase 0.3.16), which backs toga.OptionContainer with a UITabBarController. The app works perfectly on iPhone, but on iPad Pro (M5, iOS 18 simulator) the entire home screen is non-responsive after login — touches are not delivered to Python handlers.

    What works:

    • Login (tapping the login button fires correctly)

    • The toga detailed list renders and is visible

    • The tab bar is visible at the top

    What doesn’t:

    • Tapping any row in the detailed list — tableView:didSelectRowAtIndexPath: via UITableViewDelegate never fires

    • Tapping the UIBarButtonItem

    • Tapping the tab bar items themselves

    Diagnosis so far:

    I set UITabBarController.mode = .tabBar (value 1) immediately after creation, before the controller is added to any window, using the explicit ObjC selector via rubicon-objc:

    self.home_option._impl.native_controller.setMode_(1)
    print(self.home_option._impl.native_controller.mode)  # prints: 1
    

    The log confirms mode is set to 1. The UITabBarController is only added to the window’s view hierarchy after the window is visible and the user has logged in. But despite all this, no touches reach Python on iPad. The very same code on iPhone delivers all touches correctly.

    My theory: iPadOS 18 is placing some invisible overlay or touch-intercepting view over the content when UITabBarController is used on iPad, even in .tabBar mode. This prevents hit-testing from reaching the table view or bar button items.

    Minimal reproduction:

    import toga
    from toga.style import Pack
    from toga.style.pack import COLUMN
    
    class MyApp(toga.App):
        def startup(self):
            content_box = toga.Box(style=Pack(direction=COLUMN, flex=1))
            label = toga.Label('Tap me')
            btn = toga.Button('Press', on_press=lambda w: print('pressed!'))
            content_box.add(label, btn)
    
            tab = toga.OptionContainer(
                content=[('Tab 1', content_box)],
                style=Pack(flex=1),
            )
            # Set mode = .tabBar on iPad iOS 18
            tab._impl.native_controller.setMode_(1)
    
            main_box = toga.Box(style=Pack(direction=COLUMN, flex=1))
            main_box.add(tab)
    
            self.main_window = toga.MainWindow()
            self.main_window.content = main_box
            self.main_window.show()
    

    On iPad iOS 18 simulator, pressing the button never prints 'pressed!'. On iPhone it works.

    Questions:

    1. What is iPadOS 18 doing to UITabBarController that blocks touch delivery, even in .tabBar mode?

    2. Is there a UITabBarController delegate method, subclass override, or configuration that restores normal hit-testing on iPad iOS 18?

    3. Is there a way to inspect which view is intercepting touches (e.g. via Xcode’s View Debugger, I can check if there’s an invisible overlay)?

    Environment: Xcode 16, iOS 18.x simulator, TARGETED_DEVICE_FAMILY = "1,2" (Universal), Python 3.12, rubicon-objc 0.4.9, toga-iOS 0.5.1.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    ios – Centered ScrollView content doesn’t return to position after pull-to-refresh with a large navigation title in SwiftUI

    June 12, 2026

    Introducing SwiftBash | Cocoanetics

    June 8, 2026

    ios – SwiftUI Map View freezes when there is no network

    June 7, 2026

    Swift Cross Platform | Cocoanetics

    June 3, 2026

    Is there any way to redeem in-app purchases in iOS apps as the developer of the app?

    June 2, 2026

    An Interpreter for Swift | Cocoanetics

    May 29, 2026
    Top Posts

    Understanding U-Net Architecture in Deep Learning

    November 25, 202554 Views

    Hard-braking events as indicators of road segment crash risk

    January 14, 202630 Views

    Redefining AI efficiency with extreme compression

    March 25, 202627 Views
    Don't Miss

    Generative AI Music Attribution Rethinks Royalties

    June 17, 2026

    Musicians are accustomed to getting paid each time their creative work is used. Across vinyl/CD…

    Subsea cable security: Focusing on reality over fear with UltramapGlobal

    June 17, 2026

    The Case Against Building Your Own Agent Platform – O’Reilly

    June 17, 2026

    The Partner Well-Architected Framework: What’s New and What’s Next

    June 17, 2026
    Stay In Touch
    • Facebook
    • Instagram
    About Us

    At GeekFence, we are a team of tech-enthusiasts, industry watchers and content creators who believe that technology isn’t just about gadgets—it’s about how innovation transforms our lives, work and society. We’ve come together to build a place where readers, thinkers and industry insiders can converge to explore what’s next in tech.

    Our Picks

    Generative AI Music Attribution Rethinks Royalties

    June 17, 2026

    Subsea cable security: Focusing on reality over fear with UltramapGlobal

    June 17, 2026

    Subscribe to Updates

    Please enable JavaScript in your browser to complete this form.
    Loading
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    © 2026 Geekfence.All Rigt Reserved.

    Type above and press Enter to search. Press Esc to cancel.