How To Make an App - Ep 13 - Introducing Arrays in Swift

preview_player
Показать описание
How To Make iPhone Apps with NO Programming Experience!
Lesson 13: Introducing Arrays in Swift
This lesson introduces Arrays and shows you how to use them to display the card images.

This video series uses the latest and greatest from Apple (Xcode 6, Swift, iOS 8) and will teach a beginner with no programming experience how to make iPhone apps. I'm creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.

The lesson plan for the How To Make an App series can be found on my site here:

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you'll find a community of like minded learners! Learning something new is always more fun with other people!

Get a customized roadmap for your app and start building it in 7 days:

CodeWIthChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Objective-C, Xcode and app building from my course and materials!

Intro & Outro music
Рекомендации по теме
Комментарии
Автор

Thanks again, this tutorial on iOS 8 / xcode 6 swift is so descriptive and easy to follow.  I have made it thru all 13 videos and looking forward to completing the whole app.

markthomaswilliams
Автор

i feel like a real app developer now... thanks chris
past experience in my physics degree doing calculations on matlab/fortran/c++ definitely helped me breeze through this lesson

brothermalcolm
Автор

Hi Chris, I want to thank you for making these lessons. I've found them incredibly helpful, and am eagerly awaiting the next one. I've tried to move ahead on my own without much luck ;)

alekskenins
Автор

Where's the next video?? You've got me checking YouTube multiple times a day waiting for it. 

bencavenagh
Автор

Just finished this one as well. I tried to follow some other tutorials from different people as well but I didn't understand a single thing of what they said so I just stick to these lessons. Got everything ready in my Xcode project for the next lesson! :D

TheNameIsCasper
Автор

Thanks Chris. I am taking a course with the same title that is being offered for the first time at our college. However, the instructor starts an example with Objective-C and teaches us on how to do the same example in Swift!. I am going to advise that instead, he solely concentrates on SWIFT to prevent so much ambiguity. What do you think?

AKAlarm
Автор

SO I'm finally on lesson 13 and I've watched each lesson 7 times. I really can't get the code to sink in. Everything surrounding how to use Xcode I can do, but when it comes to writing the code it baffles me. I keep practicing myself in the playground but is there anything else I can do to try and learn this? I want to finish building my app that I hired someone to start but it didn't work out with them so I have a half built app and I can't code to save my life! 

shelby-jademurdock
Автор

Chris, can you show me how to let the app go into someones contacts so they can select someone to communicate with

tylermeinhofer
Автор

Hi Chris
Thanks for your efforts in putting this together. I'm really enjoying it and thinking about going on to the next step after this course finishes.

However, big problem today when I tried to open the project on Xcode: it keeps quitting unexpectedly upon opening. Everything was going smoothly up till the end of 12. Randomized cards ok but can't open up to begin lesson 13. Any ideas or suggestions would be appreciated as I'm 13 lessons in and definitely don't want to stop here.

TheDesertPenguin
Автор

n you explain me why and when to use the "%i" you used to add the random number?? Please answer me! And by the way great video! :D Thanks for everything.

byteappple
Автор

when randomly selecting cards by pressing the button the original blue and red images appear as cards

joeygyarmathy
Автор

Nice! can i keep using the first method as well? so i dont have to confuse myself with arrays? :D

niclasaugustin
Автор

So what about a method that can set the index from the cards in the UIAssets file? Llike a UICardassets.itemIndex?

davidcappelucci
Автор

so I tried to create an empty array and then populate it using the for loop, so I wouldn't need to type "card_" 13 times, but when I create the for loop XCode says there is an error in it described as "expected declaration", does anyone know why?

thanks

antonitescaro
Автор

Code With Chris I'm having trouble finding the Code I'm looking for because I don't know what to type to look for it ... Can you help me please ???

I need to find the code to pick a RANDOM element out of a list (array i suppose) of elements (so 1 word out of a list of words) and have it shown on the iPhone screen at the press of a button. 

I'm really stuck and hope you can help, I really don't know where to look for a solution anymore.... 

Thanks man

iceweasel
Автор

the button works for three times then crashes :( please help!

rushilpunya
Автор

so, help me understand. You made a string array and then used Int func "arc4random_uniform" then used string "self.cardNamesArray" and out comes a card?

hmm so string->int->string...

jannah
Автор

Not to sound like a douchebag or anything, but when you declare your variables, the names are super long lol. If you're target audience is beginners who don't know how to code, you shouldn't get them into the bad practice of making such long names. It can get confusing, and is generally considered bad practice

Gazlamofy