将数据发送到iPhone中的上一个视图 [英] sending data to previous view in iphone

查看:47
本文介绍了将数据发送到iPhone中的上一个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iphone中将数据发送到上一个视图的可能方法是什么.不使用Appdelegate.因为有可能再次实例化我的视图类.

What are the possible ways to send data to previous view in iphone. Without using Appdelegate. Because there are chances for my view class to be instantiated again.

推荐答案

有几种方法可以实现数据共享,其中Singleton Objetcs是最受欢迎的方法之一:

There are several ways to achieve data sharing, with Singleton Objetcs being one of the most popular:

目标C单例

这篇关于将数据发送到iPhone中的上一个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆