Tôi đang sử dụng mã này cho hiệu ứng Page curl .... Tác phẩm của nó hoạt động tốt trong trình mô phỏng và thiết bị ... Nhưng không phải (setType: @ "pageCurl") từ chối do Chương trình phát triển iPhone trong quá trình xem xét App Store:Hiệu ứng cuộn tròn trang Iphone
animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
animation.startProgress = 0.5;
animation.endProgress = 1;
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:@"pageCurl"];
[animation setSubtype:@"fromRight"];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
[[imageView layer] addAnimation:animation
forKey:@"pageFlipAnimation"];
Vì vậy, tôi đã thay đổi và sử dụng như thế này
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationDelegate:self];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationWillStartSelector:@selector(transitionWillStart:finished:context:)];
[UIView setAnimationDidStopSelector:@selector(transitionDidStop:finished:context:)];
// other animation properties
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
forView:imageView cache:YES];
// set view properties
[UIView commitAnimations];
Trong đoạn code trên này tôi muốn dừng hiệu lực thi hành curl trang ở giữa chừng .. Nhưng tôi không thể ngăn chặn nó ở giữa chừng như các ứng dụng bản đồ trong ipod ... Đây có phải là bất kỳ sửa chữa cho điều này? hoặc Có bất kỳ phương pháp tài liệu táo được sử dụng cho trang curl có hiệu lực trong ipod touch?
Tôi đang tìm kiếm rất nhiều. nhưng không nhận được bất kỳ câu trả lời? Ai giúp tôi với? Cảm ơn bạn trước..plz
Xin chào. Vì vậy, bạn đã sử dụng loại @pagecurl và ứng dụng đã bị từ chối? – user281300
Nếu bạn muốn làm một phần curl, nhưng giữ một thanh công cụ văn phòng phẩm, như trong ứng dụng Bản đồ của Apple, hãy xem giải pháp của tôi [ở đây] (http://stackoverflow.com/a/11406056/1148702). –