我尝试了导致 iOS8.4 SDK 内存泄漏的 UIAlertView 和 UIActionSheet 对象。来自支持最低 iOS8 操作系统的 iOS8 的新对象(例如 UIAlertController)。如何在 iOS8 和之前的版本中处理这种泄漏?
导致泄漏的示例代码;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@""
message:@""
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];