I am working on an objective-c project that uses a C++ library. It keeps listening to users' audio input using Audio Queue
and pass the data to the C++ library. Eventually, the C++ library will trigger a call-back function when it finds a whole sentence.
But the problem is that my application containing several views, and I want the top view to get notified immediately. I passed a callback function to the C++ library, but I don't know where should I define such a function because I want to it to have access to the user's current view controller and change content on it.
I am wondering if I should put it in UINavigationController or AppDelegate. Any idea will be appreciated!