【发布时间】:2011-09-11 08:17:51
【问题描述】:
我有两个班级
- view1 类。(从使用基于视图的应用程序创建项目,背景为灰色)
- view2 类。(来自为 view1、view2、view3 和 view4 添加文件 uiviewcontroller 子类)
在 view1 类中,我创建了 4 个 uiview 变量 v1、v2、v3、v4 并将其链接到视图 1、视图 2、视图 3 和视图 4
在view1的viewdidload中
我的代码
view2 *sub =[[view2 alloc] initWithNibName:@"view2" bundle:nil];
self.v1 = sub.view; (v1,v2,v3,v4 is view that i draw by interface builder on self.view)
但是当我创建的运行view2没有出现;
我怎样才能让它出现。
view1 http://postimage.org/image/2mqhcxb1g/
view2http://postimage.org/image/2mqj0gnj8/
谢谢
【问题讨论】:
-
所以你想要它作为 view1 图片??
-
别忘了接受其中一位回答者 ;)
标签: iphone objective-c uiview