Mein UIScrollView unten Scrollen nicht horizontal scrollen, Bitte helfen Sie mir hier ..UIScrollView nicht horizontal
FirstView = [[UIView alloc] initWithFrame:CGRectMake(60, 0, 100, 150)];
[FirstView setBackgroundColor:[UIColor clearColor]];
SecondView = [[UIView alloc] initWithFrame:CGRectMake(320+60, 0, 100, 150)];
[SecondView setBackgroundColor:[UIColor clearColor]];
HolderView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 1000, 150)];
scrHorizontalScroll = [[UIScrollView alloc]initWithFrame:HolderView.frame];
[scrHorizontalScroll setBackgroundColor:[UIColor redColor]];
[scrHorizontalScroll setContentSize:CGSizeMake(999, 150)];
[scrHorizontalScroll setScrollEnabled:YES];
[HolderView addSubview:scrHorizontalScroll];
[scrHorizontalScroll addSubView:FirstView]; [scrHorizontalScroll addSubView:SecondView]; [HolderView addSubView: scrHorizontalScroll];
Die HolderView nicht horizontal scrollen, aber was passieren, bitte helfen
Anmerkung: Ich habe ein Mainview Das fügt HolderView in seinem oberen Abschnitt gemäß den Rahmenkoordinaten hinzu.
[mainView addSubView:label].... [mainView addSubView:HolderView];
Dies ist komplette Struktur
Vielen Dank Tom, du bist fantastisch. – Futur