gpt4 book ai didi

ios - -[GMSIndoorState didReceiveMemoryWarning :]: message sent to deallocated instance 0x210b2010

转载 作者:行者123 更新时间:2023-11-29 03:43:27 25 4
gpt4 key购买 nike

调试日志打印:

-[GMSIndoorState didReceiveMemoryWarning:]: message sent to deallocated instance 0x210b2010

但我不知道哪里出了问题

似乎与拍照过程有关,

它只是在当前操作表拍照和关闭 imagePicker 之间崩溃

所以我无法使用 NSZombie 进行调试

有时会发生,有时不会。请帮忙。

- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex
{
if ([actionSheet.title isEqualToString:NSLocalizedString(@"Delete the photo has picked?", nil)]) {
if (buttonIndex != [actionSheet cancelButtonIndex]) {
NSLog(@"photo deleted");
self.selectedPhoto = nil;
self.photoLabel.text = NSLocalizedString(@"Take One", nil);
self.photoIsOn = NO;
self.photoIcon.image = [UIImage imageNamed:@"camera_icon_off_60.png"];
}
} else {
NSLog(@"Source button tapped index: %d", buttonIndex);
if (buttonIndex != [actionSheet cancelButtonIndex]) {
self.imagePicker = [[UIImagePickerController alloc] init];
self.imagePicker.delegate = self;
switch (buttonIndex) {
case 0: //Camera
self.imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
break;
case 1: //Library
self.imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
default:
break;
}
[self presentViewController:self.imagePicker
animated:YES
completion:nil];
}
}
}


- (void)friendPickerViewControllerSelectionDidChange:(FBFriendPickerViewController *)friendPicker
{
self.selectedFriedns = friendPicker.selection;
[self updateSelections];
}

- (void)updateSelections
{
//update picked photo
self.photoLabel.text = (self.selectedPhoto ? NSLocalizedString(@"Taken", nil) : NSLocalizedString(@"Take one", nil));
self.photoIsOn = (self.selectedPhoto != nil ? YES : NO);
self.photoIcon.image = (self.selectedPhoto != nil ?
[UIImage imageNamed:@"camera_icon_60.png"] :
[UIImage imageNamed:@"camera_icon_off_60.png"]);
self.sendButton.enabled = (self.textView.text != nil);
}

最佳答案

可能是 GoogleMaps SDK 问题。在1.4.1版本中已修复。请更新至最新版本的 GoogleMaps.framework。更多详情请点击 https://developers.google.com/maps/documentation/ios/releases

关于ios - -[GMSIndoorState didReceiveMemoryWarning :]: message sent to deallocated instance 0x210b2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18046397/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com