Lecture 9.1- SWIFT Environment-Summary-iOS10-Udemy Flashcards

1
Q

Which part of the code we should find to put our objects there

A

viewdidload( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we put our objects into the code

A

First we drag and drop our file such as image into assets.xcassets folder—>Then we go to Main.storyboard and add one image view from object library—>From Inspector viewer choose the uploaded image for dragged image—> Activate Assistant Editor—>Finally drag+ctrl the elements above viewdidload( ) segment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3 Main folders on left side of the SWIFT

A

Main.storyboard(Graphical elements), viewController(Codes), Assets.xcassets: Uploading files to the elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What kind of adjustment we should do if we change the name of an object

A

For avoiding errors go to Main.story.board and on write view controller and write click and remove the yellow exclamation mark.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where to find images, buttons or other objects

A

Right down click on Object library and search image… or button…after dragging the image to screen—> Select the image name from top left from a list inside Attributes Inspector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is IBOutlet

A

Any object which is dragged above the viewdidload is an outlet. Meanwhile, Outlet is just a show and there is no action behind.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is IBAction and how to give action to object

A

For giving action to an object weshould ctrl+drag the object to the end point before the closing segment and change the connection to action instead of outlet. So, once that object is inserted above the viewdidload for show in IBOutlet and once end of the code for giving action in IBAction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to bring one object front of another

A

Inside the MainStoryBoard—> View—> drag the up front to lower inside the list of objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

We want that two objects be hidden and when click on Welcome button two imagesappear and the button be hidden when the app is launched what should we do

A

Make the objects hidden as default. Add all IBOutlets above Override and add one IBAction of button to last segment of code before closing. Inside the IBAction add commands: button.isHidden = true …. other hidden objects.isHidden = false….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Write the codes for our first iPhone app

A

First drag+ctrl objects to above the viewdidload—> Second, ctrl+drag the button to closing segment of code down before {. —> Third: below that { object1 isHidden = false, object2 isHidden = True….}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly