Connecting Outlets - Beginning Programming with iOS 11, Swift 4, and Xcode 9

preview_player
Показать описание
Get some more practice connecting views from your storyboard to outlets that you can access from Swift code.

----

We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!

----

The tutorial team and I are happy to announce that we’ve released our very first video course on Udemy: iOS 11 and Swift 4 for Beginners!

This course is intended for complete beginners to iOS 11 and Swift 4 development and represents a collection of some of the best tutorials from our site.

This course is for absolute beginners to iOS 11 or Swift 4 development — or even for absolute beginners to programming in general.

You’ll start the course with a bang by creating your first app, an entertaining game called Bulls-Eye.

In this section, you will learn how to add basic controls like labels, buttons, and sliders into a Swift 4 and iOS 11 app.

This section contains 10 videos:

Introduction: Learn about the first app you’ll build – a simple but fun game called Bull’s Eye – and get a preview of all the things you’ll learn throughout this section.

Making a Programming to-do list: Make a programming to-do list of all the things you’ll need to do to build the game. This helps build a good programming practice of gathering requirements first!

Buttons and Actions: Learn how to add a button to the app and connect it to some Swift 4 code that prints a message to the console.

Alerts: Learn how to make the app display a popup alert when you tap a button.

Solving Problems: Learn how to solve problems beginners frequently run into.

Challenge: Connecting Actions: Practice connecting an action performs on a button – such as a tap – to some Swift code that you write.

How Does an App Work: Learn how apps actually work under the hood.

Portrait vs. Landscape: Learn how to convert your app from portrait to landscape mode.

Challenge: Basic Controls: Practice adding basic controls like sliders, buttons, and labels into your app by creating the basic layout for the Bulls-eye game.

Conclusion: Let’s review where you are with your programming to-do list, and discuss what’s next.
Рекомендации по теме
Комментарии
Автор

What event and where is the code when you tap Awesome. How does it know you pushed that button to do all the processing on the label and random number? thanks.

SevenDeMagnus
Автор

Hi, I'm getting this error: Cannot invoke initializer for type 'String' with an argument list of type '(UILabel?)' after trying to create the function updateLabels(), everything else up until this point has worked. I can't find anything online about how to correct this error. I know this was written for swift 4 and Xcode 9, and I'm currently on Xcode 10 with swift 4.2, so I'm not sure if things have changed or if I'm doing something wrong. Any advice would be appreciated, I want to move on in the lessons but should figure out this bug first.

hollylehmann
Автор

Hi. How come the Int variable needs to be initialized but the variable for label doesn't need to be initialized? Thanks. God bless, Proverbs 31

SevenDeMagnus
visit shbcf.ru