Connect Objective-C framework to Swift iOS 8 app (Parse framework)

After further research I found the solution and realized that I was just confused. The correct approach is as follows: Import your Objective C framework by dragging and dropping the framework into an Xcode 6 Swift project. Create a new Objective C file in your project (File->New->File [Objective C for iOS]). Accept the prompt (agree) … Read more

Run code only after asynchronous function finishes executing

Well, you simply call the function at the end of the asynchronous callback. That is when the asynchronous callback has ended – it is when everything else in the asynchronous callback has finished! So, for example: func myMethod() { // … code … somebody.doSomethingWith(someObject, asynchronousCallback: { (thing, otherThing) in // … do whatever // –> … Read more