ios - Handle loading of content then go to different scenes -


i have 2 scenes user can enter information (one scanning barcode, other enter number manually)

from there, want download information backend.

depending on back, want go 1 or scene.

here sample of storyboard: storyboard

i don't know how handle loading part. first idea have scene spinner , download content here. once can choose scene want go , it's done. but...

when user clicks "back" button scenes on right, goes "loading" scene instead of last "logical" scene (the input scene).

so question two-fold:

  • do handle download correctly, using scene that?
  • if right, how go last input scene instead of going loading scene? (i found solutions unwind segue, none use navigation controller, want use)

thanks

using scene loading sounds good.

as you're working in uinavigationcontroller stack here, when you're ready trigger segue next screen should pop loading view controller stack without animation, trigger segue:

[self.navigationcontroller popviewcontrolleranimated:no];  // trigger segue 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -