Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
再会!
我想在 iphone 的另一个视图中添加一个子视图。我希望该子视图具有我想要的大小,如果我想改变它的高度/宽度,我可以。有人可以在这方面给我一些建议或帮助我吗?
提前致谢
你可以这样做
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)] ; [self.view addSubview:newView];