的iOS: 我的應用程序,打開一些內容,我已經加入了右側導航欄,可以從保存的抓刪除郵件內容的按鈕,現在我希望把構象的行動,按鈕導航控制器上的iOS與刪除actionSheet
sheet = [[UIActionSheet alloc] initWithTitle:@"Delete Message" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete Message" otherButtonTitles:nil];
// view sheet
[sheet showInView:self.view];
NSLog(@"Button %d", buttonIndex);
現在,我怎麼使用我的deleteContent功能這個值:刪除消息, 我創建UIActionsheet這樣之前,用戶符合? 我刪除功能
-(void) deleteContent
{
if (buttonIndex=0)
{
[[NSFileManager defaultManager] removeItemAtPath:fileName error:&e];
}
}
我的問題是我怎麼能在短短的一個功能,可以在一個呼叫被調用,所有這一切重新排列這一點。
THNAKS THANKS THANKS :)它的工作.... – Dixit
很酷。如果我的回答很有幫助,請將複選標記放在它旁邊:) – geraldWilliam