mercredi 29 avril 2015

How to have buttons persist through views while maintaining same functionality

I'm just getting into ios development and I'm wondering how to accomplish this.

Say for example I have 3 screens - I want each of those screens to have the same 1 button that links to the same place whether you tap it on screen 1 2 or 3.

Is there a way to accomplish this without having a separate method for each view controller?

Also if a solution is too much to type out, are there any good references/guides I can look at for this?


Edit: Another example in case it is a bit confusing - having a login button in the same position across 5 different screens that all take you to the same login screen

Aucun commentaire:

Enregistrer un commentaire