iOS 嘗試用 block 閉包 去代替delegate 實現方法

一般都是這樣建立alert 再加一個代理 // 建立一個UIAlertView並顯示出來 UIAlertView *alertview = [[UIAlertView alloc] initWithTitle:aTitle message:msg delegate:self cancelButtonTitle:str otherButtonTitles:nil]; [alertview show]
相關文章
相關標籤/搜索