[Objective-C] iphone视图之间的过度 →→→→→进入此内容的聊天室

来自 , 2019-03-28, 写在 Objective-C, 查看 125 次.
URL http://www.code666.cn/view/504b7f66
  1. // get the view that's currently showing
  2.  UIView *currentView = self.view;
  3.  // get the the underlying UIWindow, or the view containing the current view view
  4.  UIView *theWindow = [currentView superview];
  5.  
  6.  // remove the current view and replace with myView1
  7.  [currentView removeFromSuperview];
  8.  [theWindow addSubview:view1];
  9.  
  10.  // set up an animation for the transition between the views
  11.  CATransition *animation = [CATransition animation];
  12.  [animation setDuration:0.5];
  13.  [animation setType:kCATransitionPush];
  14.  [animation setSubtype:kCATransitionFromRight];
  15.  [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
  16.  
  17.  [[theWindow layer] addAnimation:animation forKey:@"SwitchToView1"];*/
  18. //objectc/3901

回复 "iphone视图之间的过度"

这儿你可以回复上面这条便签

captcha