سؤال

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top