我有一个视图,在这里我按下一个按钮,然后加载以下代码:
TestView *testView = [[TestView alloc] initWithNibName:@"TestView" bundle:nil];
[testView.table setFrame:CGRectMake(0, 200, 320, 188)];
testView.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[(UIViewController*) currentOb presentModalViewController:testview animated:YES];我有一个表的TestView的nib加载得很好,但是表仍然在(0,0) intead (0,200)的位置。你知道我做错了什么吗?
谢谢,对不起,我的英语不好。
发布于 2011-10-18 04:16:25
您是否将TestView的桌面插座连接到接口生成器中的表格?这很容易忘记,在这种情况下,就会发生这样的事情。
https://stackoverflow.com/questions/7796540
复制相似问题