How To Make an App - Ep 15 - Using Arrays in Swift 3

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

Download the Key Takeaways Lesson Notes!

My Courses:

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

This video series uses the latest and greatest from Apple (Xcode 8, Swift 3, iOS 10) 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!

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 3, Xcode 8 and app building from my course and materials!

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

Thanks so much for these lessons. I wouldn't expect amazing stuff like this to be free. Thanks again ;)

HASHITRON
Автор

These are very good tutorials. Lots of thought has gone into this and I really appreciate it.

andrewbarlow
Автор

Really Great Tutorial for getting start iPhone Development.

SureshKeraiv
Автор

and problem solved. thanks for the tutorial

chisomodimmegwa
Автор

11:28 could also use count from the array and just -1 if you have many items :)

TKzTechnology
Автор

Hi, ive been watching your vids and ive followed step by step with no issues till now... for some reason, my screen looks exactly like yours and im positive ive followed everything properly, but for some reason, when i was trying to test the app out on my simulator it wouldnt work... and the only differences i can spot is that my 4 dots on lines "13, 14, 15&16" are still highlighted, but yours arent.. ive gone back to see if i missed any steps but it all seemed correct, please help

llman
Автор

Chris, how to I get angle and how to get curly braces on Mac? Thanks!

leotac
Автор

ok i already solved the disappearing card issue. now problem is, as i press the deal button, sometime one of the card will disappear

chisomodimmegwa
Автор

Could you help to check why my code got error? (just want to try a new way)

var cardNames = ["ace", "jack", "queen", "king"]

for item in 2...10 {
cardNames =
}

tipfertilizer
Автор

Thanks for these videos! I had an idea to, rather than type each card number separately in the array, do something like this:
let Number = arc4random_uniform(9)+2
let cardNames = ["ace", "card\(Number)", "jack", "queen", "king"]

But I'm getting an error: "Cannot use instance member 'Number' within property initializer; property initializers run before 'self' is available". Can you explain?

yonitbousany
Автор

hi Chris, I got this message when I change "card\(leftNumber)" to (cardNames[leftNumber])



Cannot subscript a value of type '[String]' with an index of type 'UInt32'


what do you think the problem?

fiores
Автор

Any one know how to fix the problem when I deal the cards and one side becomes blank with no card?

ProCodMinecraft
Автор

I've been following along on my computer and when I ran my code I would occasionally have no card show up on either the left, right, or both sides as I kept hitting the Deal button. I can't figure out why.

iankalter
Автор

when i clicked the deal button, my cards disappeared

chisomodimmegwa
Автор

alright i saw the problem. card1 doesnt exist and then i out it there XD

chisomodimmegwa
join shbcf.ru