Ios UIViews手势后的UIViews动画

Ios UIViews手势后的UIViews动画,ios,objective-c,animation,uiview,uiswipegesturerecognizer,Ios,Objective C,Animation,Uiview,Uiswipegesturerecognizer,我正在开发一个应用程序。人们第一次打开应用程序时,可以看到N个视图,其中包含一些我首先进入核心数据的信息。信息实体有N次标题和文本(取决于来自Web服务的信息)。所以我必须用这些信息显示UIN视图 视图必须改变每一个左SwipeGesture,就像一本带有动画的电子书一样 现在我可以更改视图及其信息,但它看起来不像动画页面更改 这是我的密码。我有一个自定义视图,并在视图控制器中处理SwipeGesture: int cont = 1; - (void)viewDidLoad { [su

我正在开发一个应用程序。人们第一次打开应用程序时,可以看到N个视图,其中包含一些我首先进入核心数据的信息。信息实体有N次标题和文本(取决于来自Web服务的信息)。所以我必须用这些信息显示UIN视图

视图必须改变每一个左SwipeGesture,就像一本带有动画的电子书一样

现在我可以更改视图及其信息,但它看起来不像动画页面更改

这是我的密码。我有一个自定义视图,并在视图控制器中处理SwipeGesture:

int cont = 1;

- (void)viewDidLoad
{
    [super viewDidLoad];
    infoArray = [Info getAllInfos];

    UISwipeGestureRecognizer * swipeleft=[[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(swipeleft:)];
    swipeleft.direction=UISwipeGestureRecognizerDirectionLeft;
    [self.view addGestureRecognizer:swipeleft];

}
-(void)swipeleft:(UISwipeGestureRecognizer*)gestureRecognizer
{
    if(cont < [infoArray count]){
    Info *information = [infoArray objectAtIndex:cont];
    WPCustomInfoView *info = [[WPCustomInfoView alloc] initWithFrame:self.view.bounds];
    [info configureViewWithTitle:information.title andText:information.text];
    [self.view addSubview:info];
    cont++;
        NSLog(@"Swipe %d%@",cont, information.title);

    } else {
        NSLog(@"Swipe");

        WPLoginViewController *loginVC = [[WPLoginViewController alloc] init];
        [self.navigationController pushViewController:loginVC animated:YES];

    }
}
int cont=1;
-(无效)viewDidLoad
{
[超级视图下载];
infoArray=[Info GetAllInfo];
UISwipeLeft=[[UISwipeGestureRecognitzer alloc]initWithTarget:自操作:@selector(swipeleft:)];
swipelft.direction=UISWIPGestureRecognitizerDirectionLeft;
[self.view addgesturecognizer:swipleft];
}
-(void)swipeleft:(UISwipeGestureRecognitor*)GestureRecognitor
{
如果(续<[infoArray count]){
Info*information=[infoArray objectAtIndex:cont];
WPCustomInfoView*info=[[WPCustomInfoView alloc]initWithFrame:self.view.bounds];
[info configureViewWithTitle:information.title和text:information.text];
[self.view addSubview:info];
cont++;
NSLog(@“刷%d%@”,续,信息标题);
}否则{
NSLog(“刷卡”);
WPLoginViewController*loginVC=[[WPLoginViewController alloc]init];
[self.navigationController pushViewController:loginVC动画:是];
}
}

我读过一些关于PageViewController的文章,但我不知道。那有用吗?谢谢

是的,这听起来像是UIPageViewController的工作。UIPageViewController的问题在于转换。我几乎已经完成了UIView的转换,我认为它可以更好的思考你想要什么动画?从右边幻灯片。比如当你改变一个UIViewController动画:是的,我想在一个左开关测试后得到这个,那么你现在用pushViewController没有得到这个吗?