3
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Error"
message:@"Some failure message"
delegate:self
cancelButtonTitle:@"cancel"
otherButtonTitles:@"retry", nil
];
[alert show];
[alert release];
我得到了两个警告指向这段代码。在UIAlertView分配中丢失哨兵
- 未使用的变量“警报”
- 缺少定点在函数调用
我的代码类似于所有在线的例子。为什么它坏了?
失踪哨兵通常是关于被遗忘的',无'。 – Dani
谢谢@Dani!不能相信我忘了这么做:) –