Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:29:35+00:00 2026-05-24T01:29:35+00:00

Problem description is brief but I think I don’t need to say much. When

  • 0

Problem description is brief but I think I don’t need to say much. When I load my custom movie player’s .xib, the UIButton/UIBarButtonItem controls are set to ivars/properties of my File's Owner object, and they also have their actions/selectors set to various local methods. The function is never entered (gdb breakpoint not hit).

I’ve verified setView: and set...Button: are being called (haven’t investigated whether they’re nil yet). I also tried manually calling addTarget:action:forControlEvents:/setAction: upon UI initialisation, to no avail.

There’s extra oddness here too: the buttons actually highlight, and then stay highlighted. So they transition from UIControlStateNormal to UIControlStateHighlighted(/UIControlStateSelected, depending on how single taps roll), but upon the UIControlEventTouchUpInside which would otherwise trigger the action of the button, the button seems to remain in its highlighted/selected state.

Note that the following controls in the same .xib work without issue:

  • MPVolumeView (Apple-subclassed UISlider)
  • UISlider (with selectors set for the UIControlEvents ValueChanged, TouchDown, TouchUpInside, TouchUpOutside, TouchCancel, all of which seem to be working still)
  • UIGestureRecognizers (even single tap ones on buttons currently work)

This used to work, so what’s changed in the .xib since then? Well:

  • Now using an AVPlayerLayer as the layerClass of the top-level view (hence the top-level view is also a subclassed UIView). This was to fix some movie loading dodginess/visual lag.

That’s literally all that’s changed, at least that I can think of.. I’ve tried removing and reconnecting the outlets in IB too. Thoughts which are not necessarily solutions are also welcomed!

EDIT: Okay, so here’s an overview of which devices it’s working/broken in. Simulator not tested because I have .a libraries which only have the armv6/armv7 architectures compiled in.

  1. iPhone 3G on 4.2.1 (8C148) jailbroken with PwnageTool 4.2, baseband version 05.15.04, no SIM inserted: Buttons not firing
  2. iPad 1 on 4.3.5 (8L1), baseband version 07.11.01, SIM inserted: Buttons are firing
  3. iPad 2 on 5.0b4 (9A5274d), no baseband (it’s WiFi-only): Buttons not firing
  4. iPhone 4 on 4.3.4 (8K2), SIM inserted: Buttons are firing

I’ve tried deploying to devices 1 and 2 from both iOS 4.3 (Xcode 4.0.2 4A2002a) and iOS 5.0b4 (Xcode 4.2 4C139), same results in both instances (phone doesn’t work, pad works). I’ve also tried completely uninstalling the app from devices 1 and 2 AND doing a clean build, same results on reinstall. Device 3 I deployed to from Xcode 4.2 only and device 4 from Xcode 4.0.2 only.

Only correlation I can see there is no cell signal = not working, but that’s nonsensical. I turned cell data off on device 2 just in case, but it’s still working fine over WiFi.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:29:36+00:00Added an answer on May 24, 2026 at 1:29 am

    Switching all selector/action-based callbacks to UIGestureRecognizers instead has worked around the problem. Still not sure why it isn’t working though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my homework, but please read my problem description first. I have to
Description: I have a problem regarding DataGridView . I need to show a Client_Name
Problem Description: Multi-player Game that works over the some kind of network, in game
Problem Description I'm using Expat with a custom C++ wrapper, which I already tested
Uhm I'm not sure if anyone has encountered this problem a brief description is
I'm having a problem with QNetworkAccessManager. Here is some brief description of what I
Short problem description: XCode 4.2 install right Target on device, but debug (run) always
Problem description: Read an xml file, traverse to a particular node (element), if it
Problem description : - Step 1: Take input FILE_NAME from user at main thread.
The following is the problem description: let c[n] be the catalan number for n

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.