KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have to provide a C-style callback for a specific C library in an iOS app. The callback has no void *userData or something similar. So I am not able to loop in a context. I'd like to avoid introducing a global context to solve this. An ideal solution would be an Objective-C block. My question: Is there a way to 'cast' a block into a function pointer or to wrap/cloak it somehow?
Tags (comma-separated)
Save Edits
Cancel