标签栏应用程序
我制作了一个选项卡栏应用程序,在详细视图中显示图像我首先有两个视图,然后在图像视图中我有一个按钮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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想将图像名称保存到其他视图,只需在其他视图中获取一个字符串,在第一个视图中导入其他类,将该值添加到其他类的字符串中,然后发送到其他类,它将将该值携带到您的其他视图。
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.
请尝试更好地解释一下自己。你想让我做什么?您的实施会崩溃吗?
根据您(缺乏)的解释,这就像将选择器设置为您最喜欢的按钮并更改第二个视图一样简单。
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.