In my app, I need to show some choices to the user to select, wait for the response, then handle it accordingly. I know UIAlertController with UIAlertAction can do this and I'm using it mostly, but I have some cases they don’t fit and I must handle manually.
To achieve this, I’m using:
Wait for the user response here,
then, when the selection is made,
will be executed within its call back to exit CFRunLoop() to do further handlings written after it.
Now, this has been working just fine on iPhone, iPad (and those simulators) on different generations, but when I run this on MyMac (designed for iPad), it just keeps going without stopping at CFRunLoopRun().
I assume this is supposed to work on any platform under “Universal” concept….
Or is there anything I’m missing or misunderstanding?
To achieve this, I’m using:
Code Block language CFRunLoopRef currentRunLoop; ~ ~ ~ ~ ~ currentRunLoop = CFRunLoopGetCurrent(); CFRunLoopRun();
Wait for the user response here,
then, when the selection is made,
Code Block language CFRunLoopStop(currentRunLoop);
will be executed within its call back to exit CFRunLoop() to do further handlings written after it.
Now, this has been working just fine on iPhone, iPad (and those simulators) on different generations, but when I run this on MyMac (designed for iPad), it just keeps going without stopping at CFRunLoopRun().
I assume this is supposed to work on any platform under “Universal” concept….
Or is there anything I’m missing or misunderstanding?