I am new to both Swing and Objective-C and I was trying to work with AVCaptureDevice. I tried to implement the following code that gives me back a pr ...
I am new to both Swing and Objective-C and I was trying to work with AVCaptureDevice. I tried to implement the following code that gives me back a pr ...
I have a tableview each cell contains a text and a button. For each button in each cell in cellForRowAtIndexPath I define an action using a selector a ...
I'm trying to execute a Location Service once. This LocationService is called from another object class, that will add the location info into the para ...
I am trying to parse an endpoint for some JSON in Swift and use the name member as a title of my cell. I have created a struct, which conforms to the ...
I was trying the below code but [self performSelector:handler withObject:data afterDelay:0] in the sync function does not call the handler1 or handler ...
I'm trying to run this code but it's yielding unexpected results. The value being printed is some junk number -5764607523034233277. How can I set t ...
I try to call a function using perform(_:onTarget:) as part of a sequence of SKAction. I've tried: When I use SKAction.run(block: () -> Void) l ...
Below code i have used to write certain task in background mode.But this executes only for 3mins after it ends task. So i would like to execute partic ...
I want to cancel the perform request registered for that particular target and method. e.g Will above method cancel my all perform selector Request ...
I need to implement a perform selector from a String. The Selector must have as parameter a Notification value. I suppose I'm doing something wrong ...
What's different between selectors with same arguments type but different arguments sort? I got these two selectors with same arguments type. But ...
I have doubt in Swift 3.0 In Objective-C you can declare a property for selector like this But how to declare a selector in Swift 3.0 as propert ...
I'm following this apple document and I'm trying to translate some of its parts in Swift language. I have this global function, with performSelector: ...
I've been stuck for a couple of days with a crash on Crashlytics that says : libobjc.A.dylib objc_msgSend I managed to point out what seems to be t ...
I have this below delegate method that receives stickerURLString as input: And the selector calls this method sendStickerPreviewButtonPressed: A ...
This is a simple academic not real code. I want to run print method using performSelector function. But If I run this code in playground, throws an e ...
Very similar issue is already discussed here. The problem at hand and what I am trying to achieve is to call a function on a given object in the threa ...
I have an array that contains time values in milliseconds e.g.: On top there is a function that simply does anything - for now - print some text: ...
I have property @property (nonatomic, assign) SEL buttonSelector in objective C class which have button to show thing So from swift class i am usin ...
In ObjC you could simply invoke a class method using the class method from NSObject. [Machine performSelector:@selector(calculate:) withObject:num]; ...