Close Menu
geekfence.comgeekfence.com
    What's Hot

    Explore Clipboard Operation in JavaScript

    July 29, 2026

    Just 3 in 10 Workers Believe Their Role Is Safe from AI Over the Next Decade

    July 28, 2026

    Teaching Coding When AI Can Write the Code – O’Reilly

    July 28, 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 Read3 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 – iCloud Dashboard returns “Internal Error” when querying records across all containers

    July 27, 2026

    ios – How to resolve the “Failed to build cache” build error in Xcode on macOS running in Docker in the docurr/macos project?

    July 22, 2026

    ios – Do Critical Alert (Apple) sounds play one at a time, or can two overlap?

    July 17, 2026

    ios – Bizarre animation issue in SwiftUI

    July 12, 2026

    security – How and where mnemonic/private keys are generated/stored in IOS for mobile non-custodial wallet

    July 7, 2026

    JSON All the Way Down

    July 3, 2026
    Top Posts

    Understanding U-Net Architecture in Deep Learning

    November 25, 202567 Views

    The Next Paradigm in Efficient Inference Scaling – The Berkeley Artificial Intelligence Research Blog

    May 16, 202636 Views

    Hard-braking events as indicators of road segment crash risk

    January 14, 202634 Views
    Don't Miss

    Explore Clipboard Operation in JavaScript

    July 29, 2026

    Cut, Copy and Paste in JavaScriptPhoto by Alex Green from PexelsThe browser allows JavaScript scripts to…

    Just 3 in 10 Workers Believe Their Role Is Safe from AI Over the Next Decade

    July 28, 2026

    Teaching Coding When AI Can Write the Code – O’Reilly

    July 28, 2026

    FCC exempts new Starlink devices from router ban

    July 28, 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

    Explore Clipboard Operation in JavaScript

    July 29, 2026

    Just 3 in 10 Workers Believe Their Role Is Safe from AI Over the Next Decade

    July 28, 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.