You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a little confused as to what exactly I can assign a "UIControlEventTouchUpInside" action to. I get a "no visible interface" error for some elements, while others work. What are the limitations of signalForControlEvents? Shouldn't it be available for ALL UIViews and subclasses?
Secondary question: Is there a convenience macro for rac_signalForControlEvents or an easier syntax I should be using? (not that it isn't easy, I'm just wondering)
The text was updated successfully, but these errors were encountered:
I'm a little confused as to what exactly I can assign a "UIControlEventTouchUpInside" action to. I get a "no visible interface" error for some elements, while others work. What are the limitations of signalForControlEvents? Shouldn't it be available for ALL UIViews and subclasses?
No, it will only work for UIControl subclasses (which UILabel is not). It's a RACified version of UIKit's -addTarget:action:forControlEvents: method, nothing more.
Secondary question: Is there a convenience macro for rac_signalForControlEvents or an easier syntax I should be using? (not that it isn't easy, I'm just wondering)
Nope, nothing like that exists. It would be pretty difficult to simplify beyond what's there already.
Could RAC use UITapGestureRecognizer to attach touch-up events to various elements? This would be a great way to expand the functionality of rac_signalForControlEvents. If this is possible, I'd like to add this as a feature request. Currently I can't, for example, use rac_signalForControlEvents with a UIBarButtonItem because it doesn't inherit from UIButton.
I'm a little confused as to what exactly I can assign a "UIControlEventTouchUpInside" action to. I get a "no visible interface" error for some elements, while others work. What are the limitations of signalForControlEvents? Shouldn't it be available for ALL UIViews and subclasses?
Secondary question: Is there a convenience macro for rac_signalForControlEvents or an easier syntax I should be using? (not that it isn't easy, I'm just wondering)
The text was updated successfully, but these errors were encountered: