How to implement UIView with DoModal function like CDialog::DoModal in MFC?
Hi all,
I have a trouble with Modal view in iPhone SDK when porting app from Win32 platform to iPhone SDK.
In Win32 we can do this:
But in iPhone SDK, when we call a iModalView by presentModalViewController, the iModalView will not interrupt the current process and wait for user's input. And in this case, my app will call TASK_CANCEL and TASK_OTHERS.
So are there any ways to implement a DoModal function in iPhone SDK like CDialog::DoModal in MFC?
Thanks
I have a trouble with Modal view in iPhone SDK when porting app from Win32 platform to iPhone SDK.
In Win32 we can do this:
Code:
if(dlg.DoModal == ID_OK)
{
//Do TASK_OK
}
else
{
//Do TASK_CANCEL
}
//Do TASK_OTHERSBut in iPhone SDK, when we call a iModalView by presentModalViewController, the iModalView will not interrupt the current process and wait for user's input. And in this case, my app will call TASK_CANCEL and TASK_OTHERS.
So are there any ways to implement a DoModal function in iPhone SDK like CDialog::DoModal in MFC?
Thanks
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Is it possible to implement http connection for iPhone Development? | joyjit_b | 2 | 5,194 |
Aug 8, 2008 09:13 AM Last Post: Taxxodium |
|

