在过去的Xcode4应用程序中,我已经成功地做到了这一点,但是它在Xcode5中似乎不再起作用了。简而言之,我喜欢将UITableView添加到UIViewController中。该过程的一部分要求我将其包含的任何GUI元素(如UILabel )作为属性添加到cell.h中。问题是,我再也不能把这些元素拖到牢房里了。
Main.storyboard
UIViewController,UITableView,UITableViewCell
UITableView将UIViewController作为数据源和委托。testViewController.h
#import <UIKit/UIKit.h>
#import "testCell.h"
@interface testViewController : UIViewController
<UITableViewDataSource, UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *myTableView;
@endtestViewController.m
@synthesize myTableView;testCell.h
问题:无法将UILabel从单元格中拖到这个文件中,就像我在过去的应用程序中所做的那样。
testCell.m
什么都不加。
发布于 2013-10-16 02:27:17
通过手动输入IBOutlet属性并以这种方式链接它,我就可以让它正常工作。
ctrl-拖动仍然不工作,FYI。
https://stackoverflow.com/questions/19394128
复制相似问题