Comments (5)
Hmm, what slider are you talking about exactly? The reason why it gives you back the images as PHAsset
is so that it doesn't overload the memory, since ImagePickerSheetController
can select multiple images.
Check out this question on SO about retrieving the UIImage from it.
from imagepickersheetcontroller.
Indeed, I came across that question too, and tried it with no luck. Xcode says PHAsset is expected and the controller.selectedImageAssets is of the type [PHAsset] which I wasn't able to convert to PHAsset..
from imagepickersheetcontroller.
Oh, [PHAsset]
is an array of PHAsset
instances of course. So you'll need to access a specific element as follows: YOURARRAY[0]. This will return the first element of the array.
from imagepickersheetcontroller.
Thanks man, sorry for that dumb mistake!
from imagepickersheetcontroller.
No worries dude :)
from imagepickersheetcontroller.
Related Issues (20)
- Crash. This application is not allowed to access Photo data. HOT 1
- IOS 10: Photo taken from the camera: Secondary Handler does not get called HOT 2
- Sorry, how can I use the swift 3 version? HOT 1
- "Add Comment" HOT 5
- No animation in HOT 1
- First button in actionSheet is animated with scale
- Incompatiable with Xcode 8.0 beta 2 HOT 2
- block main thread in ImagePickerSheetController.cellForItemAtIndexPath HOT 1
- Swift 3 HOT 1
- view of memory leaks HOT 1
- Cocoapods org not update 0.9.2? HOT 4
- crash if display this controller in popover on iOS 9.3.3
- How about the Swift3 Compatibility? HOT 2
- The app crash on Xcode8.0 iOS10 within ImagePickerSheetController. HOT 2
- Swift 3.0 support HOT 1
- [Version Supported] 8.0 HOT 6
- Swift 3.0 branch HOT 1
- Why not merge Swift3.0 to the main branch? HOT 1
- On the Swift3 branch: Denying access to photo library, and presenting an alertController on top of presented image picker sheet => crash HOT 7
- On the Swift3 branch: Setting .maximumSelection = 1 and then attempting to select multiple images => app crashes HOT 7
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 imagepickersheetcontroller.