2010-11-02 64 views

回答

1

发布一些代码,将有助于我们帮助你,但这里是你如何设置任何UIView子类的框架:

// When creating the view... 
UIView *yourView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)]; 

// or after having created the view... 
yourView.frame = CGRectMake(0, 0, 50, 50); 
// ... or 
[yourView setFrame:CGRectMake(0, 0, 50, 50)]; 
相关问题