Skip to content

AnatoliK17/performSelector-swift

 
 

Repository files navigation

performSelector-swift

Usage

  • performSelector:withObject:
let ret: AnyObject! = self.swift_performSelector("say:", withObject: "hello")
println("ret = \(ret)");
  • performSelector:withObject:afterDelay:
self.swift_performSelector("say:", withObject: "hello", afterDelay: 3.0)

Sample Code

Setup

Using CocoaPods

// Podfile
pod 'performSelector-swift'

and

pod install

and

// YOur Bridging-Header.h
#import "performSelector-swift.h"

About

performSelector for Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 61.6%
  • Objective-C 27.5%
  • Ruby 10.9%