Comments (5)
Hi @kshan
The type of fullScreenImage
is Optional, maybe you have to check it nil or not like this:
if let fullScreenImage = asset.fullScreenImage {
// do something...
}
Thanks for your used :)
Closing the thread... Let me know if you have any other questions :)
from dkimagepickercontroller.
@zhangao0086 Thanks for your prompt reply. I found the solution to this in my case.
Crash happen to that I post data to server via fullScreenImage
, but use thumbnailImage
in collectionview after picks phtos, even if unwrapping an optional value. If i use fullScreenImage
in collectionview too, it's normal.
from dkimagepickercontroller.
Thanks for your detail!
Could you make a test? Change these line:
public private(set) lazy var fullScreenImage: UIImage? = {
return UIImage(CGImage: self.originalAsset?.defaultRepresentation().fullScreenImage().takeUnretainedValue())
}()
to that:
public private(set) lazy var fullScreenImage: UIImage? = {
return UIImage(CGImage: self.originalAsset?.defaultRepresentation().fullScreenImage(). takeRetainedValue())
}()
I think this will resolve your issue. Let me know if that works. TIA :)
from dkimagepickercontroller.
Hello @zhangao0086 . I tried to do this . But this is also not working. I am using iOS 9.0
from dkimagepickercontroller.
The issue has been fixed. Here is my solution:
- Define the
library
as a singleton property:static private let library = ALAssetsLibrary()
- Replace
self.library.enumerateGroupsWithTypes...
withself.dynamicType.library.enumerateGroupsWithTypes...
This will always use the same library for all accesses to the assets.
Let me know if you have any other questions :)
from dkimagepickercontroller.
Related Issues (20)
- Crash on DKCamera.captureImage function HOT 1
- How to get original files URLs?
- Xcode 14: Swift Compiler Error: Stored properties cannot be marked potentially unavailable with '@available' HOT 4
- ios error Signing for "DKImagePickerController-DKImagePickerController" requires a development team. HOT 14
- After changing to 4.3.4, Now i cant compile with BITCODE enabled HOT 4
- XCode 14 Build error: Stored properties cannot be marked potentially unavailable with '@available' HOT 16
- I want to export the video to .mp4
- xcode14中不兼容ios12系统
- No Actions when clicking in Camera Icon, it should open camera to capture
- How to perform Multiple Image selection but only single video selection
- Xcode 13 升级 14后,运行到真机没有问题但是打包会报错 HOT 4
- Error output from CocoaPods:
- Add tag 4.3.5 or higher to enable Swift Package Manager versioning support HOT 1
- Add tags to dependend packages in order to be able to fetch DKImagePickerController with a versioned rule
- Library not loaded: @rpath/DKImagePickerController.framework/DKImagePickerController HOT 2
- Support App Privacy Manifests HOT 5
- Version 4.3.7 is failing with TOCropViewController HOT 1
- Privacy Manifest is missing an entry HOT 1
- Crashed: DKCamera/DKCamera.swift:1154: Fatal error: Unexpectedly found nil while unwrapping an Optional value
- Not able to checkout in Xcode15.4 with Carthage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dkimagepickercontroller.