我已经通过XIB创建了一个大小为(768,1800)的UIScrollVIew(name-helpView)。现在,我将通过以下代码将其添加到另一个视图中。
-(IBAction)showHelpView:(UIButton *)sender{
if(helpViewIsShowing==NO){
//set the content size more than the view size to make the view scroll
helpView.contentSize = CGSizeMake(helpView.frame.size.width, 2200);