ios - I am 5 Controllers deep into a Storyboard, how do I programmatically pop back to the Official Initial Controller? -


i 5 controllers deep storyboard, how programmatically , pop official initial controller?

is there 1 liner this? elegant , simple solution?

1 - on root vc, create unwind method: like:

- (ibaction)unwindtoroot:(uistoryboardsegue*); 

then wire "exit" in storyboard. unwind segue.

or 2 - in fifth vc, pop manually:

[self.navigationcontroller poptorootviewcontrolleranimated:yes] 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -