IMD 1_To Do List (1)

Our second project! To Do List!

Let’s create a new project.

스크린샷 2016-03-29 오전 11.48.11.png

스크린샷 2016-03-29 오전 11.49.57.png

Make sure to check ‘Use Core Data’.

스크린샷 2016-03-29 오전 11.52.13

We will gonna make our own database. We got an .xcdatamodeld. This is our core data.

스크린샷 2016-03-29 오전 11.54.29

Delete ViewController.swift and move to trash.

스크린샷 2016-03-29 오전 11.56.51.pngAnd delete Main.storyboard, too. We will make our new storyboard.

스크린샷 2016-03-29 오전 11.58.59.png

In the bottom, click ‘add entity’.스크린샷 2016-03-29 오전 11.59.35.png

스크린샷 2016-03-29 오후 12.00.30.png

스크린샷 2016-03-29 오후 12.03.48.png

In the Attribute, we added 3 String. Upper and Lower case is very important. Double check your capital letter is right.

스크린샷 2016-03-29 오후 12.06.05.png

And we will going to make a 3 new file.

스크린샷 2016-03-29 오후 12.06.21.png

Choose ‘Swift File’.

스크린샷 2016-03-29 오후 12.07.41.png

스크린샷 2016-03-29 오후 12.08.48.png

스크린샷 2016-03-29 오후 12.10.15.png

1. Model.swift

2. listTableViewController.swift

3. itemViewController.swift

스크린샷 2016-03-29 오후 12.42.37.png

And go to Main.storyboard, let’s drag Navigation Controller to your screen.

You can change your size. I’ve made it iPhone 4.7-inch(iPhone 6).

We made some code to Model.swift.

스크린샷 2016-03-29 오후 5.20.29.png

And Go to listTableViewController.swift.

We wrote some code here, also.

스크린샷 2016-03-29 오후 5.20.37.png

스크린샷 2016-03-29 오후 12.47.08.png

Click ‘Prototype Cells’ and type ‘Cell’ to Identifier.

스크린샷 2016-03-29 오후 12.47.38.png

And the style will be ‘Subtitle’.

스크린샷 2016-03-29 오후 12.47.56.png

Next class, we will fill out our code.

My Dropbox Link :

https://www.dropbox.com/s/d1kwehx8gvk5dzb/todoClass_1212200.zip?dl=0

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s