标签栏应用程序

发布于 2024-10-18 07:11:38 字数 114 浏览 5 评论 0原文

我制作了一个选项卡栏应用程序,在详细视图中显示图像我首先有两个视图,然后在图像视图中我有一个按钮addtofavorities我想单击addtofavorities并将图像名称添加到第二视图中。第二视图是一个表视图

I have made a tabbar application which display images in detail view i have two views first and seconed at the image view i have a button addtofavorities i want to click on addtofavorities and add the image name into seconed view.seconed view is a table view

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

活泼老夫 2024-10-25 07:11:38

如果您想将图像名称保存到其他视图,只需在其他视图中获取一个字符串,在第一个视图中导入其他类,将该值添加到其他类的字符串中,然后发送到其他类,它将将该值携带到您的其他视图。

If you want to save the image name to other view then, just take a string in other view import other class in first view add that value to the string of other class and send to other class, it will carry that value to your other view.

极致的悲 2024-10-25 07:11:38

请尝试更好地解释一下自己。你想让我做什么?您的实施会崩溃吗?
根据您(缺乏)的解释,这就像将选择器设置为您最喜欢的按钮并更改第二个视图一样简单。

Please try to explain yourself a bit better. What do you want to do? Does your implementation crash?
Based on your (lack of) explanation, it's as simple as set a selector to your favourite button and change second view.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文