1 min readJul 13, 2018
我只有大概看一下你貼上的專案,看起來從 GeotificationViewController 到 AddGeotificationViewController 的 prepareForSegue 的時候,有拿到即將前往的下個 VC, 然後將其的 delegate 設給自己。
你可以把它想成,必須要跟郵差註冊這個人名的地址在哪邊,這樣需要用到 delegate 的時候,就會去該地址,並且把資料傳遞過去。
我只有大概看一下你貼上的專案,看起來從 GeotificationViewController 到 AddGeotificationViewController 的 prepareForSegue 的時候,有拿到即將前往的下個 VC, 然後將其的 delegate 設給自己。
你可以把它想成,必須要跟郵差註冊這個人名的地址在哪邊,這樣需要用到 delegate 的時候,就會去該地址,並且把資料傳遞過去。
Software Developer at 91APP. If you like my articles, please clap and follow me on Medium. Never stay still, never plateau!