How to create a pointer in Objective C to swift?

血红的双手。 提交于 2019-12-12 05:27:33

问题


I am developping an iOS application and I would like to create a pointer that refers to a view in my swift code.

Currently I have this in my Objective C file :

MyViewController *viewController=[MyViewController new];

In my MyViewController.swift I have an UIView field in which I want to display something that I handle in my Objective C file.

For the time being it doesn't work and I have the impression I misunderstood something...

Does my current pointer refers to a specific instance of MyViewController or does it refers to the class ?

(This question follows my previous question : How to integrate pjsip video in iOS? )

Thanks

来源:https://stackoverflow.com/questions/44932722/how-to-create-a-pointer-in-objective-c-to-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!