我的- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
NSString *tmpFilePath = @"";
tmpFilePath = [_myHelper retrieveAppDirectory:self.username];
UIImage *image = [info objectForKey: UIImagePickerControllerEditedImage];
if (!image) {
[info objectForKey: UIImagePickerControllerOriginalImage];
}
NSString *imageName = [NSString stringWithFormat:@"image-%d.securedData", self.photos.count + 1];
[_myHelper performEncryptionForSecuredData:image filePath:tmpFilePath fileName:imageName];
[self.photos addObject:image];
[self.collectionView reloadData];
[picker dismissViewControllerAnimated:YES completion:nil];
}
如何检查state = true(在xml中声明)。但是当在java中的Oncreate中查看它时,它显示为false?
是否有其他方法可以设置switchCompat的状态?
switchCompat