swift - Two scenes sharing a different scene wont segue -
so have 2 different scenes in storyboard , both have tableview cell segues date picker scene. first scene built segue date picker scene works , has unwind segue.
the second scene's segue wont fire when trying segue same date picker scene. has unwind segue. dont want have recreate scenes use them different segues. way around this? new ios , swift.
the way got around use 2 done buttons on date picker scene because 1 button cant have 2 unwind methods. when segue 1 scene date picker scene send boolean in prepare segue. in date picker scene set done button.hidden boolean.
essentially hiding , unhiding correct button can unwind correct segue.
Comments
Post a Comment