2010-11-02 61 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)]; 
相關問題