Thursday, 15 January 2015

How to use Objective C in Swift

With everyone switching to apple iOS Swift these days, one of the key requirement in Swift projects is using Objective C classes or frameworks that are not yet available in Swift.


Swift provides a simple way to communicate with Objective C for interoperability. Simple add a cocoa class to your project  and swift asks to add a bridging header file to your project. This acts as a bridge between objective C and swift. Then import objective C libraries in the bridging header and start using in Swift. 




Gopinath T B,
CEO, Meteora Gaming







1 comment: