You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works for me ( Xcode 6.4 ) .. I have created a new swift file in my project called 'CCMRadarView.swift' ,
( you will be prompted to add an Objective-C bridging header & I accepted it ) & add the CCMRadarView.swift code in to it .
But I have to change the class declaration " @IBDesignable class CCMRadarView: UIView" to "@objc class CCMRadarView: UIView " as I'm using the swift code inside my objc code.
Then in my UIViewController.h / .m I have import the class as #import "Project_Name-Swift.h" ( if your project name has spaces - "Project Name " or hyphens -"Project-Name" you need to add underscore " Project_Name" when importing the class. )
Then in your .m file -(void)viewDidAppear:(BOOL)animated{ } you can call "startAnimation" method . It will show the animation ..
( In your build phases "project module name" should match with your "Project_Name" )
how to run in Objective C project? It is not working in Objective C code even if setting the bridge file.
The text was updated successfully, but these errors were encountered: