我无法辨别出什么是错的:我想用按键的 UIAction 找到另一个视图。
我的视图控制器包含一个 UIScrollView IBOutlet 。 我为此视图控制器创建了.xib 文件 。
在这个... 轴里,我特制的班级 成了我的"设置控制师"班级。
但是现在,有了这种配置(我有滚动View,搜索Display Connator 和视视作为我的媒体),我不知道我必须如何将它连接起来才能工作。请帮助!
非常感谢你的忠告
我无法辨别出什么是错的:我想用按键的 UIAction 找到另一个视图。
我的视图控制器包含一个 UIScrollView IBOutlet 。 我为此视图控制器创建了.xib 文件 。
在这个... 轴里,我特制的班级 成了我的"设置控制师"班级。
但是现在,有了这种配置(我有滚动View,搜索Display Connator 和视视作为我的媒体),我不知道我必须如何将它连接起来才能工作。请帮助!
非常感谢你的忠告
从您的文章中可以看到, 您没有将某些属性与您 nipb 文件中的对象连接到一起 。
Open you second .xib in Interface Builder. Check if UIView is connected to your File s owner. If not, just drag with right mouse button (or cmd+left mouse button) from File s owner to UIView and connect to view property. (May be you should drag in another direction, from UIView to File s owner, i cannot remember now)
向其他人澄清- 如果您正在与像这样的界面构建者一起制作您自己的自定义 View Control 类 :
您需要确保您的.xib 知道它与哪一类相关联。
选择您的. xib 文件 - & gt; 在右导航窗格上单击占位符 - & gt; 下的文件所有者 - & gt;, 在左侧单击第三个图标( aka. 身份检查员), 在自定义类下输入您的控制器类名称( 即 MyView Consult) 。 保存. xib 文件 。
“https://i.sstatic.net/CV0As.png' alt=“视觉控制器级”/>
然后 您可以连接出入口属性 。
查看“在Xcode中创建新的UI类”一节:
希望这能帮上忙
我只是错过了给文件所有者 设置正确的类。
For a basic app with nonconsumable in-app purchases, has anyone figured out best practices for using SKPaymentQueue s restoreCompletedTransactions? Observations I know it s recommended to always ...
I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...
I have a UITextField that is a subview of a UITableViewCell. When my view loads, I want the text field to become first responder. I have a pointer to the text field in the table cell, so to do this I ...
I ve been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid ...
In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...
Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...
I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...
Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...