0
ios8 확장자에서 UIVeiwController를 표시하면 ScrollsToTop이 작동하지 않습니다. 하지만 앱 내부에서 발표하면 작동합니다. 누구든지 도와 줄 수 있습니까? 샘플 코드는 여기에서 공유됩니다.ios8 확장자에서 UIVeiwController를 표시 할 때 ScrollsToTop이 작동하지 않습니다.
UIScrollView * scrollview = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, 320, 300) ];
[scrollview setContentSize:CGSizeMake(320, 800)];
scrollview.layer.borderWidth = 1.0;
scrollview.backgroundColor =[UIColor redColor];
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"slide1"]];
[scrollview addSubview:imageView];
scrollview.showsVerticalScrollIndicator =YES;
scrollview.scrollsToTop = YES;
scrollview.delegate = self;
UIViewController *a = [[UIViewController alloc] init];
a.view.backgroundColor = [UIColor greenColor];
[a.view addSubview:scrollview];
[self presentViewController:a animated:YES completion:^{
}];