Post not yet marked as solved
hi, In my project, I try to use UIAccessibilityPostNotification (UIAccessibilityScreenChangedNotification, A) method focusing on A, But will call accessibilityApplyScrollContent: sendScrollStatus: animateWithDuration: AnimationCurve, which triggers the scrolling method of A's superView (scorllView). I didn't know what was going on, so I wanted to understand how it worked.I will be very pleased If you could reply to me
Post not yet marked as solved
hello,I am trying to figure out how to get livePhoto、gif and the picture on the icloud in PHPicker without the Photo Library permissions, but I get the error message like this :
2020-07-10 20:38:42.314255+0800 NewsInHouse[1307:315714] error = Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type com.apple.live-photo-bundle" UserInfo={NSLocalizedDescription=Cannot load representation of type com.apple.live-photo-bundle, NSUnderlyingError=0x282049680 {Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSUnderlyingError=0x2820042d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
2020-07-10 20:38:42.314914+0800 NewsInHouse[1307:315749] [claims] Upload preparation for claim AE112428-E555-4AE1-91FC-041138DAE978 completed with error: Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg, NSUnderlyingError=0x2822b4c00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2020-07-10 20:37:24.319653+0800 NewsInHouse[1307:315256] error = Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type public.jpeg" UserInfo={NSLocalizedDescription=Cannot load representation of type public.jpeg, NSUnderlyingError=0x2822990e0 {Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg, NSUnderlyingError=0x282244c00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
here is my code:
(void)getPhotoFromResult:(PHPickerResult *)result completions:(void(^)(UIImage *image))completion API_AVAILABLE(ios(14.0)) {
NSItemProvider *provider = result.itemProvider;
if ([provider canLoadObjectOfClass:[PHLivePhoto class]]) {
[provider loadObjectOfClass:[PHLivePhoto class] completionHandler:^(PHLivePhoto *livePhoto, NSError * _Nullable error) {
if (error) {
NSLog(@"error = %@",error);
} else if (livePhoto && completion) {
NSLog(@"livePhoto = %@",livePhoto);
} else if (!livePhoto && completion) {
completion(nil);
}
}];
}
if ([provider canLoadObjectOfClass:[UIImage class]]) {
[provider loadObjectOfClass:[UIImage class] completionHandler:^(id image, NSError * _Nullable error) {
if (error) {
NSLog(@"error = %@",error);
} else if (image && completion) {
completion(image);
} else if (!image && completion) {
completion(nil);
}
}];
}
}
Post not yet marked as solved
hello
I try to call -[PHPhotoLibrary(PhotosUISupport) presentLimitedLibraryPickerFromViewController:] to show the limited library picker in my app, but sometime it doesn't work,the mask will cover the screen and cause the app to become unresponsive.
Want to figure out if this is a bug or a problem with my code.
thanks