How to implement UIView with DoModal function like CDialog::DoModal in MFC?

Nibbie
Posts: 3
Joined: 2009.02
Post: #1
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:
Code:
if(dlg.DoModal == ID_OK)
{
    //Do TASK_OK
}
else
{
    //Do TASK_CANCEL
}

//Do TASK_OTHERS

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
Quote this message in a reply
Post Reply 


Messages In This Thread
How to implement UIView with DoModal function like CDialog::DoModal in MFC? - necrombi - May 7, 2009 09:33 PM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Is it possible to implement http connection for iPhone Development? joyjit_b 2 5,188 Aug 8, 2008 09:13 AM
Last Post: Taxxodium