我的申请包含TabBar
和四个观看次数(FirstView.xib
,SecondView.xib
,ThirdView.xib
,FourthView.xib
)。在ThirdView.xib
我有UIButton
,按下后,需要加载带有动画的FifthView.xib
。怎么做?
答案 0 :(得分:0)
NSArray *array = [[NSBundle mainBundle] loadNibNamed:"FifthView.xib" owner:nil options:nil];
for ( id object in array ) {
if ( [object isMemberOfClass:[FifthView class]] ) {
fifthView = (FifthView*)[object retain];
break;
}
}
...
[UIView transitionFromView:thirdView
toView:fifthView
duration:1
options:UIViewAnimationOptionTransitionFlipFromLeft
completion:nil];