我有一流的幻灯片动画代码
-(void)send
{
right=[[ViewProfileRightPanel alloc]initWithNibName:@"ViewProfileRightPanel" bundle:Nil];
right.view.frame=CGRectMake(0, 0, 260, 548);
[self.view showOrigamiTransitionWith:right.view
NumberOfFolds:[@"1" intValue]
Duration:[@"0.58" floatValue]
Direction:currDirectionRightPanel
completion:^(BOOL finished) { NSLog(@"4");
}];
}
当我在头等舱按下按钮时会调用此代码,它将打开右侧面板。关闭右侧面板的动画是,
-(void)close
{
[self.view hideOrigamiTransitionWith:right.view
NumberOfFolds:[@"1" intValue]
Duration:[@"0.58" floatValue]
Direction:currDirectionRightPanel
completion:^(BOOL finished) {
}];
}
现在我想在二等舱按下按钮时执行关闭动画,而不是从一等舱按下按钮。
问题:如何从二等舱访问一等舱的功能?