Interface Builder的混乱

时间:2009-04-01 09:58:20

标签: iphone objective-c interface-builder

请清除此方案。

我创建了一个名为RootViewController的viewController,因此很明显我们将获得RootViewController.h和RootViewController.m

然后我通过选择名为viewXib的newFile创建了一个名为ViewScreen.xib的nib文件,因此我们将自动在xibfile中获取一个View。我将FilesOwner类链接到RootViewController。

所以如果我想将视图的背景颜色设置为“groupTableViewBackgroundColor”,我不能在属性检查器中设置它,是设置该颜色来查看的唯一方法是在RootViewController.m中手动执行(声明视图并设置view.backgroundColor = [UIColor groupTableViewBackgroundColor];我们不能通过使用interfaceBuilder来做同样的事情。

如果有人有兴趣解决这个问题,请继续。

1 个答案:

答案 0 :(得分:2)

如果您将调色板更改为“Developer”,您将找到系统颜色列表,包括表格的背景颜色。