-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSinteger)buttonIndex
{
if(alertView == 定義的那個UIAlertView名字(需是全局變量))
{
if(buttonIndex == 0)
{
...
}
if(buttonIndex == 1)
{
...
}
}
}
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSinteger)buttonIndex
{
if(alertView == 定義的那個UIAlertView名字(需是全局變量))
{
if(buttonIndex == 0)
{
...
}
if(buttonIndex == 1)
{
...
}
}
}