Call from Objective-C into Python

后端 未结 3 1163
轻奢々
轻奢々 2021-02-10 18:48

bbum posted an outline of how to do this, but I\'m unable to complete the details. Where does the Python code go, and how will my Objective-C code know about it? How would I d

3条回答
  •  执念已碎
    2021-02-10 19:14

    Source here:

    Calling Python From Objective-C

    I have posted a full explanation of how to do this to my weblog as it is quite a bit longer than something I would post here.

    The abstract summary remains the same: use an abstract class to provide the type information necessary to make the C compiler happy and the metadata necessary to make the bridge happy.

提交回复
热议问题