lundi 19 août 2019

How do I use a same method in many classes?

I wrote a method that called "parse()". I m using that method in 2 Viewcontrollers and the method is written same in both of them. But i just want write it once, How can i do it?

func parse() {
    ......
    ......
    ......
}

Aucun commentaire:

Enregistrer un commentaire