我使用的是UIAlertView中有消息同行斷開 .Back地面工程/餘下的編碼沒有工作駁回it.there是一個叫繼續按鈕。只有在繼續點擊按鈕後,我才需要處理剩餘的代碼。 也我需要退出我的應用程序中取消按鈕click.can任何人告訴我一個很好的方法來做到這一點。擴展UIAlertView的功能?
我的代碼是:
UIAlertView *alertView;
alertView = [[UIAlertView alloc] initWithTitle:@"Peer Disconnected!" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:@"Continue", nil];
[alertView show];
[alertView release];
看到我的編輯答案並辦理該鏈接 – 2011-06-02 06:16:46
知道了[[NSThread mainThread]退出] – Christina 2011-06-02 06:17:38
然後將其標記爲正確或給予好評 – 2011-06-02 06:18:15