[Swift] [Beginner] I searched a lot about #selector

Introduction

Recently Programming to make and enjoy super-introduction to iPhone application Creating the first smartphone application to learn with Xcode 11 & Swift 5 I am studying about swift with the teaching material. Among them, #selector came out.

What is #selector

It seems that selector means to make one method an argument of another method. How to use was written below. How to use

About arguments

After investigating various arguments As you can see in here

It is up to the function that takes that selector to decide what can be passed to the method argument specified by the selector.

It seems. For example, it seems that you cannot pass the characters entered in the text box. (It seems that there is nothing you can't do if you do your best ...)

Conclusion

Selector is difficult, but it seems to be used in many situations, so you have to get used to it. (What I think about studying swift is I used objective-c in my business so I can understand it to some extent so far, It seems very difficult to understand that you are a complete beginner ...)

Recommended Posts

[Swift] [Beginner] I searched a lot about #selector
[Swift] [Beginner]] About range operators
[Swift] I thought about compare
I have a question about Android studio.
[Personal memo] I learned a little about modifiers
[Swift] About generics
[Swift] I implemented a Twitter timeline in UITableView (Part 2)
[Swift] I implemented a Twitter timeline in UITableView (Part 1)
[Beginner] I stumbled upon launching a project with Rails6
I learned about the existence of a gemspec file
I have a question about keyboard input of numbers
[Swift] I implemented a Twitter timeline in UITableView (Part 3)