0

デバッグ ログには次の出力があります。

-[GMSIndoorState didReceiveMemoryWarning:]: 割り当て解除されたインスタンス 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);
}
4

1 に答える 1

1

おそらくGoogleMaps SDKの問題です。バージョン 1.4.1 で修正されました。GoogleMaps.framework の最新バージョンに更新してください。詳細はこちらhttps://developers.google.com/maps/documentation/ios/releases

于 2013-08-18T14:12:21.510 に答える