IPhone UIScrollView scaling

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

allImageScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 768, 1024)];

allImageScrollView.minimumZoomScale = 0.3;

allImageScrollView.maximumZoomScale = 1.0;

allImageScrollView.backgroundColor = [UIColor clearColor];

allImageScrollView.delegate = self;

[self.view addSubview:allImageScrollView];

mPicStatusesViewController = [[PicStatusesViewController alloc] init];

[allImageScrollView addSubview:mPicStatusesViewController.view];

//UIScrollView Delegete implementation

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView

{

return mPicStatusesViewController.view; //To return to China "ScrollView add view

}

- (void)scrollViewDidZoom:(UIScrollView *)scrollView

{

    //The scaling operation is invoked

}

- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale

{

//After being called China "

  }


The original address

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Tom at November 29, 2013 - 3:11 AM