文件所有者图标 [英] File's Owner Icon

查看:47
本文介绍了文件所有者图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了太多时间寻找文件所有者图标来单击并拖动到文本字段以将变量分配给该字段.然后我发现该图标只显示在 nib 文件上.不是故事板.那么将变量分配给文本字段的选项是什么,硬编码?我想要做的是在我的主屏幕上的两个文本字段中显示当前位置的连续坐标,并在它们移动时更新.我已经完成了所有的编码,只是无法将变量分配给该字段.有什么建议吗?

I have spent way too much time looking for the files owner icon to click-drag to a text field to assign a variable to that field. Then it hit me that the icon only shows on nib files. Not storyboards. So what is the option to assign a variable to a text field, hard coding? What I am trying to do is show the continuous coords for current location in two text fields on my home screen and update as they move. I have all of that coding done just haven't been able to assign the variable to the field. Any suggestions?

推荐答案

只是在情节提要中略有不同,您可以拖动到视图控制器而不是文件所有者.

It's just slightly different in storyboards, you drag to the view controller instead of files owner.

这篇关于文件所有者图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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