【发布时间】:2017-06-26 06:24:27
【问题描述】:
我正在做一个项目,该项目需要使用 segue 或故事板将编辑后的图像发送到另一个 ViewControler。
首先要了解的几点。
-
ViewController我正在发送使用Objective C配置的图像。 - 图像将传递给使用
SwiftLang 配置的ViewController。
问题:
Objective .m 文件中导入的 Swift 类不可见,因此我可以创建其对象以引用其成员。
我试过了:
// here i am not able to create SwiftVC class object so i can pass image further
SwfitVC *object = [self.storyboard instantiateViewControllerWithIdentifier:@"VC_Identifire"];
object.image = image;
[self.navigationController pushViewController:object animated:YES];
导入 .m 文件后,SwftVC 类不可见。
请看。谢谢。
【问题讨论】:
标签: ios objective-c iphone swift3 viewcontroller