Scroll View w/ Images! (Image Literals : Swift 3 in Xcode 8)

  Рет қаралды 92,107

Jared Davidson

Jared Davidson

Күн бұрын

Пікірлер: 182
@yurifontoura2189
@yurifontoura2189 7 жыл бұрын
Best Swift channel for sure! Nothing about dozens of PowerPoint slides and boring theoretical talking. Just code, explanation and practice. Very nice!
@ukeoiler10
@ukeoiler10 8 жыл бұрын
thank you SO MUCH for explaining the "why" of the code you write in this video instead of just typing out the code and leaving us wondering why it works the way it does. Helps a ton, thanks again
@danieljolley2256
@danieljolley2256 6 жыл бұрын
I love that sooo much too! I learn so much more because of that!
@krutomjer
@krutomjer 8 жыл бұрын
Thank you for the tutorial Jared, the ad is perfectly fine and don't worry about it. You bring so much value to us that a one minute ad is the least we can do for you.
@Archetapp
@Archetapp 8 жыл бұрын
Thanks man! I just wasn't too sure what kind of response I'd get from it, so just wanted to make sure everyone knew what was up. SO grateful to people like you who understand. Didn't have any bad comments about the ad, so that's great! I hope to do some more in the future, so I can step up my quality. :)
@SunriseSearcher
@SunriseSearcher 7 жыл бұрын
One of the best tutorials for Swift I have ever seen. I would like to see this combined with the SDWebImage tutorial. U already have a TableView but there isn't a single one out there for using SDWebImage with UIScrollView !
@agentastr0
@agentastr0 8 жыл бұрын
Hey Jared, I am in a Boot Camp and as of right now they are using swift 2.X to teach us. should I start learning Swift 3.0 Now or should I keep on pace with the Boot camp. I just want to be ready for a job.
@Zo91709
@Zo91709 6 жыл бұрын
Nice stuff Man! Great to see that even your older videos remain relevant and easy to follow
@patthedev
@patthedev 7 жыл бұрын
Worked like a charm. Now I need to place the scrollView at the top. Thank you, Jared!!!
@awesomerelaxsounds7250
@awesomerelaxsounds7250 8 жыл бұрын
oh my god your tutorials are so great! there is no other channel like yours that gives tutorials like this. thank you jared.
@Archetapp
@Archetapp 8 жыл бұрын
Haha, thank you so much for this comment! :D
@iShobhakar
@iShobhakar 7 жыл бұрын
Hey , I like your all video , but the most important thing is the way you interact and fast implementation , Really suprb. Keep doing this .
@mrmasterwill
@mrmasterwill 8 жыл бұрын
Really nice tutorial, great explanation of what each bit of code is doing. Actually feel like I learn watching these videos!
@Archetapp
@Archetapp 7 жыл бұрын
Yay! That's the plan. :)
@slambodianjones
@slambodianjones 6 жыл бұрын
I subbed, watched this video from start to finish and it was just amazing teaching. You explained everything to us how you needed to, I had some issues with getting 'Image Literal' to pop up, so you showed us another way to put that in there. Just quality teaching overall, look forward to watching more of your videos and learning.
@Archetapp
@Archetapp 8 жыл бұрын
Video starts at 1:05 - Hope you guys enjoy it! :D
@tobiseymour3145
@tobiseymour3145 8 жыл бұрын
Great video! Could you use gifs rather than images in this?
@david-tracy
@david-tracy 7 жыл бұрын
yes it's possible
@filipwiniarski
@filipwiniarski 7 жыл бұрын
Sweet! Super easy solution compared to PageViewController!
@jonathansegal6081
@jonathansegal6081 7 жыл бұрын
Great tutorial, very clear. Thanks!
@JeffPittman
@JeffPittman 8 жыл бұрын
Thought the ad was good - liked the little blue bar. Made me think it was an actual pre-roll - very smart.
@hamzaimran4400
@hamzaimran4400 7 жыл бұрын
Hi Jared , this video is really good work. I have to ask a question do u have these tutorials in objective-c? Can we use array of images coming from a service in this?
@hankvantunen
@hankvantunen 8 жыл бұрын
Hi Jared, Great tutorial and always enjoy your presentations. If I can be "that guy" and critique your code I hope you will take my comments in the positive light that they are presented. 1. Mixed usage of "self" (mainScrollView and self.mainScrollView). Be consistent. If you know the property scope is self, and it doesn't collide with other member names, then omit it. 2. Unsure usage of width. You have xPosition assigned from self.view.frame.width but all other widths are derived from mainScrollView.frame.width. Are they equivalent or is there a hidden difference? 3. Avoid complex operations if simple ones can fulfill the same need. In your loop you are always calculating xPosition using a conversion to float and a multiply by index. Since you know the x coordinate is always increasing by width, you can replace this by a simple add operation in the loop; xPosition = 0 wdt = mainScrollView.frame.width for i in 0..
@Archetapp
@Archetapp 8 жыл бұрын
Thank you Hank for pointing out these tips to me! I'm always trying to improve my coding, so any critiquing I take and try to do better at it. Thanks again, and have a great day. :)
@BilalBaydoun86
@BilalBaydoun86 7 жыл бұрын
Hello Jared, Thanks for this tutorial! How will the user know if he is in the first or second picture?
@RealidadesInvisibles
@RealidadesInvisibles 5 жыл бұрын
Awesome video Jared! Always learn a lot from your tutorials. I have a question, is there a way to implement this same method to text instead of images? Thank you so much!
@2015murat
@2015murat 6 жыл бұрын
You're the man Jared!! I just implemented what you showed in this example in my app! Thanks a bunch!
@gurmokh
@gurmokh 7 жыл бұрын
Do ads all you want, your tutorials are awesome
@rickyyy2006
@rickyyy2006 6 жыл бұрын
Hey Jared. I like your videos so much. So helpful. For this video, can you show the code which allows the user to go back to the previous page? Thanks a lot
@teambacon9755
@teambacon9755 7 жыл бұрын
Thank you so much, is it possible to loop back to the beginning upon the last swipe
@mukulchauhan7886
@mukulchauhan7886 7 жыл бұрын
Hello Jared Davidson nice video nice work .. will you please give some idea or link to do with image view and scroll view in swift 3
@mailsontheroad5424
@mailsontheroad5424 7 жыл бұрын
you are VERY talented Jared! keep up the good work and THANX a lot for sharing your knowledge.
@badr_mo
@badr_mo 8 жыл бұрын
simple and abbreviated (y) Just asking if there's a possibility to demonstrate how to make a scrollView that shows when you are in one of the pages of the scrollView you can see parts of the next and previous images visible at the edges of the screen. Thanks and keep on doing awesome videos :))
@captaink99
@captaink99 7 жыл бұрын
Jared -- i have a couple of questions. Could that be implemented as a Button Image (e.g. lets say i want to create an IBAction on that image). Also what about page control breadcrumbs how would you implement that?
@Bed-Time-Stories-For-Kids2024
@Bed-Time-Stories-For-Kids2024 7 жыл бұрын
Brilliant Video. Thank you. Perfect for setting up my gallery for a university project.
@marloncaruthers46
@marloncaruthers46 8 жыл бұрын
Hi Jared, I have a question. I am trying to sort an array of image literals (by the name of the image), but I can't figure out how to use the sorted(by:) method to accomplish this. Any idea(s) would be much appreciated. Thanks!
@dexxfusion
@dexxfusion 7 жыл бұрын
A very urgent question: how can I switch between photos and videos (from the photo library) in a view controller by two buttons? I'm doing my final thesis with this view in it. Thanks Jared!!! :)
@isleonardoor
@isleonardoor 8 жыл бұрын
Nice Tutorial! I am new to swift, I have a question , how can I make these images scroll automatically like every 2 seconds?
@JOUBYTUBE
@JOUBYTUBE 8 жыл бұрын
congrats on 30k!!! Been with you since 4K :))
@Archetapp
@Archetapp 8 жыл бұрын
Awesome!! Thanks for sticking around. :]
@JOUBYTUBE
@JOUBYTUBE 8 жыл бұрын
+Jared Davidson (Archetapp) No problem!!
@ChrisSmith-be1xo
@ChrisSmith-be1xo 7 жыл бұрын
Yet another great video! Great work Jared! :)
@Drizzy_30fps
@Drizzy_30fps 7 жыл бұрын
Can you use this same concept with an image view? i.e.: have a small scroll view option within the VC and still be able to have buttons, labels, etc?
@giancarlolazarteramos6479
@giancarlolazarteramos6479 6 жыл бұрын
it is scrollview or page view controller ?
@عبدالغني-ب9ص
@عبدالغني-ب9ص 8 жыл бұрын
hey jared, how can we add a search bar to help us get the image we are looking for. Can u like make a tutorial that can help u add a search bar to this project ?
@nicolascrespo4643
@nicolascrespo4643 8 жыл бұрын
I Know you are making paid curses, which is great. But don't forget your community here in youtube. Making interesting tutorials free, are an excellent thing for people that a don't own a credit card because of our age, or docent know if programming its fun for them and get more into it. Also your popularity on youtube increases for this kind of videos. Thanks a lot for your work, you have been an inspiration for my career.
@Archetapp
@Archetapp 8 жыл бұрын
I actually stopped making paid courses. I'm just gonna look for sponsors, because that's the goal of Archetapp. Teach everybody, no matter their background, to program. Gonna do my best to get these videos out for you guys, but I'm also working just on my own app at the moment, which is a BIG project. That's why the lack of uploads lately. Either way, love you guys, and you're all the reason I'm able to do what I love, so I'll never forget that. :)
@iosmayank
@iosmayank 8 жыл бұрын
JARED ,what if we want animation between images as if their is a set of images which are changing automatically on our view?
@benitoelwerito
@benitoelwerito 7 жыл бұрын
You're great, Jared. Keep it up! I won't skip the ads now :D
@frankhugh952
@frankhugh952 7 жыл бұрын
Jared, is it possible for you to put a video up showing how to pinch zoom your ScrollView along with printing all of the images within the ScrollView? There's 2 beer in it for you
@RealidadesInvisibles
@RealidadesInvisibles 6 жыл бұрын
Great tutorial! Is there any way you can make another tutorial for this, but on xcode 9.4.1? The image literal is no longer an option and I have no idea on how to get pass that
@29DPT
@29DPT 6 жыл бұрын
This is perfect this is exactly what I was looking for. how do I change the image sizes so when I scroll each page, they fill the entire background?
@everythingeverything2590
@everythingeverything2590 6 жыл бұрын
I have a question what exactly would you by for a beginner a MacBook Air or pro??????
@frankhugh952
@frankhugh952 7 жыл бұрын
Hi Jared, this works flawlessly on various iphone sizes but only scrolls half of the second image on iPad. I have 4-6 images within the app at various stages within the scollview. Also is it straightforward to change to vertical scroll? Ive played around with it for the best part of a day and got nowhere with it. Help would really be appreciated.
@timothyteves8715
@timothyteves8715 8 жыл бұрын
Jared, I've changed the horizontal scroll view to vertical but there are a lot of white spaces. how to get rid of it?
@andreassadi3034
@andreassadi3034 7 жыл бұрын
Hey Jared, great tutorial. I have a question, however, when I set my images to scaleAspectFill rather than scaleAspectFit, they start overlapping one another. Should I just set my images to scaleAspectFit and change the dimensions or is there a better solution?
@robinosolinski6365
@robinosolinski6365 7 жыл бұрын
Great work here, man! This tutorial was really helpful!
@nikz2333
@nikz2333 8 жыл бұрын
Great video :) Just one thing, shouldn't you change "mainScrollView.contentSize.width" outside the for loop (replacing "i" with "imageArray.count") ? Seems like a minor fix with no visual ramifications, but best to do in a production app nonetheless.
@thuillier68
@thuillier68 7 жыл бұрын
Great tutorial Jared. I'm having a problem with a line. Xcode keeps telling me Value of type 'UIImageView' has no member 'content size' - seems to be a problem on the bottom 2 lines? let imageView = UIImageView() imageView.image = imageArray[i] imageView.contentMode = .scaleAspectFit let xPosition = self.view.frame.width * CGFloat(i) imageView.frame = CGRect(x: xPosition, y: 700, width: self.homeScrollView.frame.width,height: self.homeScrollView.frame.height) homeScrollView.contentSize.width = homeScrollView.frame.width * CGFloat (i+1) homeScrollView.addSubview(imageView)
@davidhsu1115
@davidhsu1115 7 жыл бұрын
Great video!! Is there any way that I can download multiple image from an urlString array and append image into the array, so i can show the image like this video did?
@esc4p3EP
@esc4p3EP 8 жыл бұрын
Thanks for the "koloda". nice library
@Danq77
@Danq77 8 жыл бұрын
Thank you for your excellent videos. I can add payments within the application? you have some video of that?
@makcos8050
@makcos8050 8 жыл бұрын
Hey Jared! You publish wonderful lessons, really! ;) I have a very important (for me :)) question: is it possible to use "pageControl" in this case? So that it displays the total number of images in the set, and the current image too? I will be very grateful!
@SteveWierzbowski
@SteveWierzbowski 8 жыл бұрын
At around 13:35, you reset the frame in code but I think with auto-layout, it would be better to change that line to mainScrollView.layoutIfNeeded() That will ask autolayout to recalculate the size of the view based on the current device, display size, and constraints. I think this answer is more flexible.
@Archetapp
@Archetapp 8 жыл бұрын
Thanks for the suggestion! I'll try and keep that in mind next time. :]
@samsont5813
@samsont5813 8 жыл бұрын
Are all of your videos going to be in the beta?
@Archetapp
@Archetapp 8 жыл бұрын
Yes, for the next month or so, and I'll be sure to go over what changes there are between Swift 3 in Swift 2 in this period so I can appeal towards all my viewers. :)
@star40553
@star40553 7 жыл бұрын
Hey Jared, Can you demonstrate how to upload multiple photos from gallery? Require the code for college project purpose. Can you please make a video of it asap ?
@JenoahKers_
@JenoahKers_ 8 жыл бұрын
Hi Jared, So, I was wondering if you could make a tutorial about core data in swift 3, since my task application doesn't work with swift 3 anymore... Great video btw 😉
@B22152
@B22152 8 жыл бұрын
Thanks so much broseph. Stepping up the quality!
@Archetapp
@Archetapp 8 жыл бұрын
Haha, thanks man! :D
@joo-hyungkim3874
@joo-hyungkim3874 5 жыл бұрын
this is pretty COOL video ! thanks Jared
@enwinn
@enwinn 8 жыл бұрын
Any thoughts on memory management for large image sets? Large size, low count; low size, high count; or mixed.
@oxapisiadikhresna5706
@oxapisiadikhresna5706 8 жыл бұрын
Can you pleaseeeee create tutorial for autocomplete textfield i really need it. and your explanation is very easy to follow :D
@JayPatel-gb5yf
@JayPatel-gb5yf 7 жыл бұрын
Hi Jared. Can you explain How to set Constrain if Orientation changes.
@teamgrimaracing3607
@teamgrimaracing3607 8 жыл бұрын
Hello from Australia great video is game view and single view the same when coding
@ThisIsBeat
@ThisIsBeat 6 жыл бұрын
Is it possible to load the images in the scrollview over SDWebImage/URL ?
@yanfeizhao9003
@yanfeizhao9003 8 жыл бұрын
hey thanks jared! i've followed the tutorial but i met a problem that if i add 4 images, and when i scroll from the third one to the fourth, it always back to the third one, like half of the fourth one is already seen, but when you let go, it shows the third one still, you just can't see the fourth! i've done every single step that you did, and i cant figure out why this is happening. :( will you possibly know what is going on with this? anyway, thank you for your amazing tutorials! they help me a lot!
@ispo11
@ispo11 7 жыл бұрын
Is there a way to add the page control to this implementation?
@ultixn
@ultixn 8 жыл бұрын
Hello! How to make zoom for this scroll? Tutorial pls
@futonly935
@futonly935 8 жыл бұрын
Thanks, I really needed to do this, the tutorial helped loads :)
@nhantrivinh
@nhantrivinh 8 жыл бұрын
How do I make sure that my users are using the latest version of my app in my app?
@dannyjeong3135
@dannyjeong3135 8 жыл бұрын
Thanks for GREAT lectures!:)
@tjsorensen1892
@tjsorensen1892 8 жыл бұрын
What would I change to make the it show part of the next image on the screen so that the user knows they can scroll over? Thanks!
@tjsorensen1892
@tjsorensen1892 8 жыл бұрын
I added '/ 2.5' onto the end off xPosition if anyone else would like to have this look. I made the images smaller as well.
@andrewtran979
@andrewtran979 6 жыл бұрын
how do we scroll through the images with the little dots at the bottom indicating which "page" we are on?
@dannymt
@dannymt 8 жыл бұрын
How do you get that equal widths/height windows to stay open without having to drag from the view over and over again
@SaulUrias
@SaulUrias 8 жыл бұрын
Hey Jared, nice video man!! but what about to do another vid getting images from an URL? that would be amazing :D
@kamilozdemir9772
@kamilozdemir9772 7 жыл бұрын
Is there a way to get the index of the displayed image? So that I can display the name of image...
@TheYannsonnboys
@TheYannsonnboys 8 жыл бұрын
Great tutorial Jared Davidson
@HungNguyen-oz1jc
@HungNguyen-oz1jc 6 жыл бұрын
Can you make a video like that but scroll view with videos? Like playing video and scroll to play the next one?
@antonio423
@antonio423 7 жыл бұрын
Great Tutorial! Very very clear!
@danieljolley2256
@danieljolley2256 6 жыл бұрын
Where do you get your music for the beginning of your videos? :o)
@david-tracy
@david-tracy 8 жыл бұрын
Good stuff brotha! You are appreciated
@trukex5182
@trukex5182 7 жыл бұрын
is it possible to add a label with each images?
@xMhnd
@xMhnd 8 жыл бұрын
Great content, just like usual. Thanks man!
@Archetapp
@Archetapp 8 жыл бұрын
Thanks! :D
@sofiarodriguez4216
@sofiarodriguez4216 8 жыл бұрын
Hey Jared! How can I add a parallax effect to this tutorial?
@Archetapp
@Archetapp 8 жыл бұрын
Actually, Brian Advent just did a video on that yesterday! - kzbin.info?ci=gEyR3mdd2bc If you want me specifically to make a video about it, give me a week or so. :)
@sofiarodriguez4216
@sofiarodriguez4216 8 жыл бұрын
Thanks Jared, but the vídeo is About the parallax effect in the home screen, there's any difference when you implement it to a scroll view?, and why a link about routers?😂
@Archetapp
@Archetapp 8 жыл бұрын
+Sofia Rodriguez Haha, I thought I shared Brian Advents video, haha. That's weird!😅 As for any differences, I don't know at the moment, I'll have to look into that. :)
@shaikhfarooq8526
@shaikhfarooq8526 6 жыл бұрын
I have created screen which has horizontal collectionview with pagecontrol, collectionview cell has tableview and tableview cell has uislider(each tableviewcell has one slider -> it will at least have 2 cell and sliders).So the problem is when m trying to change slider value scroll gets called and cell changes.How to we solve this issue ?
@FernandoEidPires
@FernandoEidPires 5 жыл бұрын
Really helped!
@joseluisrodriguez8871
@joseluisrodriguez8871 5 жыл бұрын
Super helpful!!
@adilyousuf5697
@adilyousuf5697 7 жыл бұрын
+Jared Davidson Can I get Images From Json API to Scroll View
@Pavel-Anpleenko
@Pavel-Anpleenko 6 жыл бұрын
Thank you bro!! Great Video!
@jogendrasingh8575
@jogendrasingh8575 7 жыл бұрын
can you please tell me how to make it Auto sliding. i mean we are moving images by gesture but i want to make them change automatically after 1 second. how can i add this to? please help
@Abdi-uy1kh
@Abdi-uy1kh 7 жыл бұрын
have you figured it out i am interested in it too?
@ljbernardo9824
@ljbernardo9824 7 жыл бұрын
Thank you. Great explanation! btw, subscribed :D
@gamerdrack9196
@gamerdrack9196 7 жыл бұрын
Dear Jared, I hope you (or anybody) can help me. I tried to create a gallery according this video, and unfortunately when I run it, a wild error appears... "thread 1: exc_bad_instruction (code=exc_i386_invop subcode=0x0)"
@toek08102535
@toek08102535 7 жыл бұрын
Thank!!! I want to know how to zoom these image
@chada2
@chada2 7 жыл бұрын
How to get horizontal scrollview of images using php link using objective c
@jasur3442
@jasur3442 7 жыл бұрын
Love you man !
@BankOfShane
@BankOfShane 7 жыл бұрын
I got an error.. imageView.Frame = CGRect(x: xPostion, y: 0, width: self.homeSlider.frame.width, height: self.homeSlider.frame.height) Value of type 'UIImageView' has no member 'Frame' Im sure you don't offer support. But just thought I would share
@BankOfShane
@BankOfShane 7 жыл бұрын
Lol it was a caps issue... I wish Xcode and android studio was better with miss spellings and caps.. haha
@dvsteve71
@dvsteve71 8 жыл бұрын
Nice Job!
@nashwanalnomany9526
@nashwanalnomany9526 8 жыл бұрын
how to get exif data and update or insert new field.
@Ayushjain-ws7jz
@Ayushjain-ws7jz 8 жыл бұрын
can you make another video about messeges sticker. Thank you
@ivanpavliuk5799
@ivanpavliuk5799 7 жыл бұрын
Thank you, my friend!!!!!
@Archetapp
@Archetapp 7 жыл бұрын
+Ivan Pavliuk Thanks for watching Ivan! :]
@mukulthakur1566
@mukulthakur1566 8 жыл бұрын
I learned lots of things from your video; thanks Jared :-), Now, I am working on one app, which is one chat app. I need to add smiley, I know we can use default smiley of keyboard, but I don't want to use that. I know you are busy, so, I will not ask for help. I will try it myself. Waiting for your next video :-)
@ששימועלם
@ששימועלם 6 жыл бұрын
hi I make step by step and not created ImageView in this scrollView everything run without warning but don't see images somebody knows what it is can be ?
@yyyooohhhooo
@yyyooohhhooo 7 жыл бұрын
Thanks so much bro!
Custom Table View Cells! (XIB Files : Swift 3 in Xcode 8)
19:06
Jared Davidson
Рет қаралды 159 М.
Loading and Caching Images! (SDWebImage : Swift 3 in Xcode 8)
17:52
Jared Davidson
Рет қаралды 33 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 22 МЛН
How To Pass Data Between View Controllers In Xcode 8 (Swift 3)
8:42
Submitting an App to the iOS App Store (Xcode) [Deprecated]
27:22
Jared Davidson
Рет қаралды 238 М.
How to Animate a Button Menu (iOS, Xcode 8, Swift 3)
20:02
Mark Moeykens
Рет қаралды 56 М.
Playing Audio + Background Play! (Swift 3 in Xcode)
10:52
Jared Davidson
Рет қаралды 83 М.
Parsing JSON Just Became Super Easy in Swift 4 with Decodable
19:30
Lets Build That App
Рет қаралды 274 М.
iOS Swift Tutorial: Material Design Onboarding with Cool Animations
31:01
Learn Swift in 30 Minutes!
36:34
Jared Davidson
Рет қаралды 3,6 М.
Getting started with iOS modularization by Luka Terzić
23:48
How to Create Image Scroller in iOS with UIScrollView
25:40
David Tran
Рет қаралды 10 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 22 МЛН