Swift Objective-C and Cocos2d

I got interested in making something for my iPad and play around with Swift. I decided to use the Cocos2d Open Source Framework but because it is written in Objective-C I was puzzled how to use it properly in Swift code. Thanks to Apple documentation there is a solution.

To use Cocos2d code within a Swift project follow these instructions in the Apple documentation.

https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s