Swift for Beginners: Select Photo from Library iOS (2020)

  Рет қаралды 32,591

iOS Academy

iOS Academy

Күн бұрын

iOS Academy offers the #1 course for iOS Development for Beginners. Learn to create iPhone and iPad apps from scratch. Everyone these days has an app idea; learn the important skill of making those apps, make yourself more marketable, change industries to get a different job, and enjoy the ride!
This video is brought to you by Skillshare - an only community of teachers sharing awesome skills. Use the following link to get 2 months of FREE premium: www.skillshare.com/r/user/afraz
💻 Source Code: / iosacademy
🎥 Subscribe for more: kzfaq.info?su...
😎 Like my teaching style? Check out some of my most popular courses! courses.iosacademy.io

Пікірлер: 58
@runningman7001
@runningman7001 2 жыл бұрын
Why do I get an error in line 35? Writing :”Cannot find ‘imageView’ in scope.
@garrettshawstad7540
@garrettshawstad7540 3 жыл бұрын
Awesome! Could you provide info or a vid for saving said photo that’s now imported and shown in the app? Closing app removes it from ui, but can it stay after closing?
@michap.7343
@michap.7343 3 жыл бұрын
Man, you're the MVP!!! Love the channel, keep up the good work
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@RahulSharma-ru9yp
@RahulSharma-ru9yp Жыл бұрын
Thank you, you explain very well and step by step.
@v1lIo
@v1lIo 3 жыл бұрын
Man, you are truly awesome! You literally saved me)
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thank you!
@jaylensmith6308
@jaylensmith6308 2 жыл бұрын
This is perfect! Anyway to have it select only 2 images?
@BranGaming20
@BranGaming20 2 жыл бұрын
i need to send the image to api post method after it changed, where i should call the api code? in extension?
@edcunningham5562
@edcunningham5562 3 жыл бұрын
thanks, i love how you describe whats happening very logically
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks
@edcunningham5562
@edcunningham5562 3 жыл бұрын
@@iOSAcademy also do you have any idea how to only allow the user to select a square crop of an image from in photo library?
@edcunningham5562
@edcunningham5562 3 жыл бұрын
@@iOSAcademy nevermind, found the solution- set editing as false in the iamge picker and used the 3rd party library CropViewCropper to handle cropping
@ABC-tv9zy
@ABC-tv9zy 11 ай бұрын
Thank👍
@bitsurfer0101
@bitsurfer0101 2 жыл бұрын
How would change the didTapButton function in order to select videos?
@user-id1qt2bh5s
@user-id1qt2bh5s 18 күн бұрын
great, is there a tutorial for selecting multiple photos ?
@brianwalsh7040
@brianwalsh7040 3 жыл бұрын
Life saver thank you! What is the difference of using extension like you did vs calling the delegates with the class declaration like this class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { ..... }
@selvavigneshnagarajan6409
@selvavigneshnagarajan6409 3 жыл бұрын
Bro, I have a error in my console which says Connection to plugin invalidated while in use while opening Photo Library. What do I have to do?. Please Guide me through.
@thainam2000
@thainam2000 Жыл бұрын
How to set ratio when pick image, ex 1x1, 2x3, 3x2. please help me!
@jonathanhernandez3628
@jonathanhernandez3628 2 жыл бұрын
awsome saved my entire day!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Niceee
@alextodorow835
@alextodorow835 Жыл бұрын
How would I save this image to a database and have the selected image stay and upload as the selected image?
@seanharris5594
@seanharris5594 3 жыл бұрын
Does anyone know how to modify this code to select a video?
@jestinsaji8246
@jestinsaji8246 2 жыл бұрын
how can i set an option like select gallery or camera
@VictorMoreno-ed2dl
@VictorMoreno-ed2dl 2 жыл бұрын
Incrredible lessons
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@heewonJ-ys2og
@heewonJ-ys2og Жыл бұрын
Great video
@iOSAcademy
@iOSAcademy Жыл бұрын
Thanks
@DandunAdi
@DandunAdi 4 жыл бұрын
09:30 you can use info[UIImagePickerController.InfoKey.editedImage]
@lujain3335
@lujain3335 4 жыл бұрын
this video was useful ,however chancel and choose don't work well with me does anyone know why?
@gurikn9289
@gurikn9289 3 жыл бұрын
Add dismiss(animated: true, completion: nil) after imageview.image = image
@donnyc2165
@donnyc2165 3 жыл бұрын
Thanks for the video! Can you do a video for the PHPickerViewController?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks & i have one already
@donnyc2165
@donnyc2165 3 жыл бұрын
@@iOSAcademy I’ll look it up. Thanks so much for your videos!
@wrustem2
@wrustem2 3 жыл бұрын
If I want select several photos, which I can do it ?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youd need a custom component
@himanskss3749
@himanskss3749 3 жыл бұрын
how to select video?
@laviniaenroute6525
@laviniaenroute6525 3 жыл бұрын
I wrote the code for the imageview but it's not showing up when I'm trying to drag and connect it to the storyboard
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Either add it as a subview or make sure you add constraints
@weebpianoguy720
@weebpianoguy720 3 жыл бұрын
would this also work with the tap gesture?
@weebpianoguy720
@weebpianoguy720 3 жыл бұрын
NVM AFTER WATCHING THIS TUTORIAL I DID THE SANME THING WITH A TAP GESTURE AND IT WORKED THXXX SO MUCH IOS ACADEMY
@weebpianoguy720
@weebpianoguy720 3 жыл бұрын
Already did =)
@theyreheretokillus
@theyreheretokillus 2 жыл бұрын
no safari
@Brillig2
@Brillig2 Жыл бұрын
Instead of struggling with that key, inside the [] just type a . (then you get a list of available keys). Select the one you want. Simple.
@aksanazir753
@aksanazir753 3 жыл бұрын
i want this image to upload on firebase without displaying it. can u please help?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
You can just do it in the background
@BranGaming20
@BranGaming20 2 жыл бұрын
@@iOSAcademy what does in the background mean?
@rehanshah3485
@rehanshah3485 3 жыл бұрын
How i select a video kindly guide me
@iOSAcademy
@iOSAcademy 3 жыл бұрын
You can set file type on the picker itself
@jelanidejonge4640
@jelanidejonge4640 3 жыл бұрын
my image is not loading but i get no build errors
@jelanidejonge4640
@jelanidejonge4640 3 жыл бұрын
when i do an else statement the image i put in the else statement loads
@janmensik9150
@janmensik9150 2 жыл бұрын
today you need pick photo and take photo under same button
@sonso7096
@sonso7096 2 жыл бұрын
Nghe dọng buồn cười vải
@sandhyanallamilli2842
@sandhyanallamilli2842 Жыл бұрын
STOP ZOOOOOOOOOOOOOOOOOOOOOOOOOOOOMING BRO PLEASE
@qaiserkhan5772
@qaiserkhan5772 2 жыл бұрын
Better to make videos in Urdu Brother that would help plenty of those who can't understand English meanwhile user accent is much different to understand for some ppl...
@sashamaksyutenko7169
@sashamaksyutenko7169 Жыл бұрын
hello how to add photos which i want to menu where i choosing photos - image picker ? i have that photos in assets
Learn the Essentials of Swift in one hour
58:14
Paul Hudson
Рет қаралды 181 М.
Choosing Photos from the Users Photo Library
30:01
CodeWithChris
Рет қаралды 16 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Swift for Beginners: Create Collection View in Xcode (iOS - 2023)
20:47
How to use Model View Controller MVC in iOS (Swift 2020)
16:34
iOS Academy
Рет қаралды 24 М.
ShareLink and ShareSheet in iOS 16
26:36
Stewart Lynch
Рет қаралды 7 М.
Swift Tutorial: Save & Get Data with User Defaults
19:42
iOS Academy
Рет қаралды 28 М.
How to Become an iOS Developer - The Skills You Need
8:21
CodeWithChris
Рет қаралды 18 М.
New SwiftUI Photo Picker - Single & Multiple Selection
12:42
Sean Allen
Рет қаралды 10 М.
This video will destroy your FOMO in 10 minutes.
10:00
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН