Apple Swift Tutorial: Simple iOS Swift GUI Application

preview_player
Показать описание
In this tutorial you are going to write your first iOS Application using Swift. You are going to explore different kinds of familiar UIKit classes and use them with the new Swift syntax.

***COMMENTS****
If you have questions about the video or Cocoae programming. Please comment below.

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

Great tutorial! I like how you went through it all programatically instead of using Storyboards. :)

tt
Автор

Great lesson, thanks! Brian, could you please explain more properly why do we need to use "_ in" an the completion?

Ovseenko
Автор

Nice tutorials you are doing, really useful all of them.

With loops there are more ways to do what you did:

Directly get the items in the titles array:
for title in buttonTitles {
    // Create buttons here
}

or use two dots to not substract 1 to array.count:
for i in 0 .. buttonTitles.count {
    // Create buttons here
}

I would like to ask for a Extensions tutorial :) It would be rally nice!

hectortosa
Автор

I would be interested to see how you approach table views as well as creating two views on one screen

BenjaminKing
Автор

Thank you for this, and so soon after the swift release! Please keep them coming. Perhaps one specifically on animating UIViews?

areola_ayatollah
Автор

wish you had also showed how to add images to your assets, knowing this tutorial is for beginners as you said.

paracha
Автор

Thank you so much your swift tutorial, this is my first application, I did it!! So happy for it!!

PollyWu
Автор

Use the open range operator 'for i in 0 .. buttonTitles.count' to iterate over the indices in an array. Or even 'for title in buttonTitles' if you don't actually need the index.

svenax
Автор

Great job. That was exactly what i was looking for. Keep it up. Thanks

ajkeller
Автор

Hi i have other problem. I did everything like in the tutorial but when i run the app the 2 buttons are one of another and when i click them i get an error in the appdelagate.swift (libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) )
Great tutorial by the way! All of them ;)

silverrsss
Автор

If I understand the swift documentation correctly, it can be regarded as a best practice to use constants rather then mutable variables. The demo code provided by apple uses a lot more of the "let" syntax rather than the mutable "var" approach. 
I like your tutorial though and I particularly like the fact that people are already beginning to program in swift. I really love swift so far.

Grüße aus Deutschland :)

bastianboll
Автор

Well I did not use objective c so i would like to see use of text fields. I am coming from Java which is quite different but I am picking up swift quickly. Handling user input is what I need to grasp!

lucamarchal
Автор

Very good tutorial, thanks. It amazes me the amount of code required to build a so simple gui app. Apple may love to compare this language to dynamic languages like python but it looks like its libraries are nowhere near as simple to use as those for dynamic languages. Will stick with making my apps with my favourite  dynamic language/IDE Pharo. Nonetheless keep the tutorials coming, I want to learn Swift and Apple libraries. 

kilonaliosI
Автор

this video tutorial is really helpful, thank you Brian Advent

mehmetbilentr
Автор

Could you make a video explaining the UIKit and about what some of the classes used to make apps do? I am new to Xcode and don't know any C++ and am trying to jump on board with swift along with everyone else. I feel there are others like me who are also new to xcode and app development who could benefit from a quick video catching us up to speed with others more familiar with the frameworks and such. Thanks man and awesome video!

jpsterr
Автор

Hi your videos are amazing...can you talk about control flow with this operator "?" ? Thanks a lot for these videos

raffaelem
Автор

Like the video, great stuff! Keep 'em comin'!

sampcodes
Автор

Can I follow these tutorials if I am a beginner in  iOS Programming but know some of the other programming languages?

DhruvRamani
Автор

Brain on click of Button i am getting below exception,

[_TtC6MyTest15ImageController click]: unrecognized selector sent to instance 0xb30b1d0
2014-06-13 02:26:03.852 MyTest[12462:453948] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: click]: unrecognized selector sent to instance 0xb30b1d0'

wat might be the issue ?

Any help would be appreciated

badri
Автор

Hi,
Thanks for this video, it was awesome 
just a question
when I set var lines: Line[] = [] the swift returns error and suggest me use var lines: [Line] = [], when I use this the app won't start and return breakpoint. 

Could you solve my problem ? 

Thanks.

BehroozKashani