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.

"unrecognized selector sent to instance" error in Objective-C

I created a button and added an action for it, but as soon as it invoked, I got this error: …

objective-c selector unrecognized-selector
@selector() in Swift?

I'm trying to create an NSTimer in Swift but I'm having some trouble. NSTimer(timeInterval: 1, target: self, selector: test(), userInfo: …

swift selector nstimer
Objective-C: Calling selectors with multiple arguments

In MyClass.m, I've defined - (void) myTest: (NSString *) withAString{ NSLog(@"hi, %@", withAString); } and the appropriate declaration in MyClass.h . …

objective-c selector
android button selector

This is a button selector such that when normal it appears red, when pressed it appears grey. I would like …

android selector
Creating a selector from a method name with parameters

I have a code sample that gets a SEL from the current object, SEL callback = @selector(mymethod:parameter2); And I …

objective-c selector
Selectors in Objective-C?

First, I'm not sure I really understand what a selector is. From my understanding, it's the name of a method, …

objective-c selector
Trying to handle "back" navigation button action in iOS

I need to detect when the user taps the "back" button on the navigation bar, in order to perform some …

ios uinavigationcontroller uinavigationbar selector
jQuery select child element by class with unknown path

I am trying to figure out the syntax for selecting a nth-child of an element by its class, however I …

jquery class html selector css-selectors
Passing parameters on button action:@selector

I want to pass the movie url from my dynamically generated button to MediaPlayer: [button addTarget:self action:@selector(buttonPressed:) …

iphone parameters action selector media-player
How do I select a sibling element using jQuery?

Can you help me with this jQuery selector? $(".auctiondiv .auctiondivleftcontainer .countdown").each(function () { var newValue = parseInt($(this).text(), 10) - 1; $(this).…

jquery selector