简体   繁体   中英

How do I forward data to a protocol before dismissing a view manually?

I want to dismiss a view controller manually using dismissViewController:animated . The problem is I want to save a value before I dismiss the view, otherwise it becomes null and I get no data in my first view. Does anyone have any idea how to do this?

Yes, you can do it

Here is another stackoverflow link :

dismissModalViewController AND pass data back

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM