Cannot access property on Swift type from Objective-C
问题 I am trying to access a Swift class's Double? property from Objective-C. class BusinessDetailViewController: UIViewController { var lat : Double? var lon : Double? // Other elements... } In another view controller, I am trying to access lat like following: #import "i5km-Swift.h" @interface ViewController () @property (strong, nonatomic) BusinessDetailViewController *businessDetailViewController; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self