0

Can I make a global function for push/pop decision for all viewcontrollers (vc, vc2 ,vc3, vc4, ...)?

func poprootviewcontroller(view: UIView?,title: String?,f: CGRect?)->UIButton {
    return btn

like so?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253

0 Answers0