当我这样做时
visible=false
它会导致列被隐藏(- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
if ([mediaTypeStr isEqualToString:@"photo"])
{
if ([info objectForKey:UIImagePickerControllerOriginalImage])
{
// images = [NSMutableArray arrayWithCapacity:[info count]];
_images = [[NSMutableArray alloc]init];
UIImage *img = [info objectForKey:UIImagePickerControllerOriginalImage];;
img =[self scaleAndRotateImage:img];
[_images addObject:img];
// Save Photo to library only if it wasnt already saved i.e. its just been taken
[self.alAsstlibrary saveImage:img toAlbum:@"FOlder name" completion:^(NSURL *assetURL, NSError *error)
{
if (error!=nil)
{
//NSLog(@"Big error: %@", [error description]);
}
} failure:nil];
}
else
{
//NSLog(@"UIImagePickerControllerReferenceURL = %@", info);
}
}
[picker dismissViewControllerAnimated:YES completion:Nil];
}
),然后才会显示在datagridview中。
最终我只是想从gridview中删除一行,但我认为从gridview中删除它不会因为数据源绑定而起作用。