swift - UIImagePicker controller how to display some images of photo album on the storyboard and allow user to expand to chose from other images? -
i able load images manually button using uiimagepicker controller. have seen lot of apps display of images 3-4 of them, there little arrow on image set can expand , can see entire photo album , can choose photo want load. want know , have implement scratch or there ready made version available in swift?
for selecting photos uiimagepickercontroller easiest way make selections apple gives us. supports picking images navigating albums or entire camera-roll.
unfortunately uiimagepickercontroller uncustomizable. if want make deviates standard selection/look/usage of uiimagepickercontroller @ have recreate getting asset references alassetlibrary , putting them uicollectionview yourself.
there github projects have done this, although there aren't developed swift ones yet, few objective-c ones exist, still work in swift project anyways simple importing projects bridging-header file.
here example of project using uzysassetpickercontroller swift.
using uzysassetpickercontroller swift
if trying single line list of images, in imessage, or combination of these 2 selection methods check out imagepickersheetcontroller, written in swift.
Comments
Post a Comment