0

The below code is written in swift class

 override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    dim(.In, alpha: dimLevel, speed: dimSpeed)
}


@IBAction func unwindFromEditAboutUs(segue: UIStoryboardSegue)
{
    dim(.Out, speed:dimSpeed)

}

I want to call this class functions from my objective C class.... plz. suggest me how can I do this...

2 Answers 2

1

Simply import swift class in objective C Project

#import"ProjectName-Swift.h"
Sign up to request clarification or add additional context in comments.

Comments

0

You should make bridge to do this kind of stuff. Refer this link or this link and this apple documentation. Hope this will help you :)

2 Comments

You should explain and show how it works instead of just pasting links, which is never an ideal answer...
I create the bridge-Header and used <"projectName"-swift.h> in my objective C class, I already saw the above link while google but i get stuck with these function in which UIStoryboardSegue is involved...... Plz explain with some example @Lion

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.