Top "Selector" questions

A selector can be a string identifying a method name in the Objective-C or Smalltalk programming language or a special kind of switch used in computers to connect multiple lines (I/O) to a single line.

How to use addTarget method in swift 3

here is my button object let loginRegisterButton:UIButton = { let button = UIButton(type: .system) button.backgroundColor = UIColor(r: 50 , g: 80, b: 130) button.…

ios swift selector
What is the Swift equivalent of respondsToSelector?

I've googled but not been able to find out what the swift equivalent to respondsToSelector: is. This is the only …

objective-c swift selector
How do I change the tint of an ImageButton on focus/press

I have an ImageButton in my app and I need to change the tint of the image when the button …

android image selector imagebutton tint
iOS - How to implement a performSelector with multiple arguments and with afterDelay?

I am an iOS newbie. I have a selector method as follows - - (void) fooFirstInput:(NSString*) first secondInput:(NSString*) …

iphone ios selector performselector
Passing arguments to selector in Swift

I'm programmatically adding a UITapGestureRecognizer to one of my views: let gesture = UITapGestureRecognizer(target: self, action: #selector(self.handleTap(modelObj:…

ios swift uikit selector
How to programmatically set action for barButtonItem in swift 3?

Here is what I used previously, var barButtonItem = UIBarButtonItem(image: backImgs, style: UIBarButtonItemStyle.plain, target: self, action: Selector("menuButtonTapped:")) But …

ios swift selector swift3 uibarbuttonitem
Android: textColor of disabled button in selector not showing?

I am trying to make a button with a selector my button can have the following states: Enabled/Disabled Pressed/…

android xml button selector background-image
How to get rid of the 'undeclared selector' warning

I want to use a selector on an NSObject instance without the need for an implemented protocol. For example, there's …

objective-c selector categories
How can I select an image inside of a div to change its source?

I have the following div and I know the selector Id of the DIV. <div class="event"><…

jquery html selector
Can a HTML element have multiple unique ID attributes?

Needed to know if an HTML element can have multiple attributes of ID's, for instance : <input type="text" id="…

html selector