将后退按钮的动画从左右滑动更改为左右滑动!导航
-(IBAction) takeNextStep : (id) sender
{
SecondViewController *varSecondViewController =[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
}
如何将默认的从左到右(向前)滑动更改为从右到左(向后)滑动 由于我有一个自定义按钮,因此我设法对自定义按钮进行编程以返回到根目录,但是它从右向左滑动,从而导致用户困惑,
谢谢!
-(IBAction) takeNextStep : (id) sender
{
SecondViewController *varSecondViewController =[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
}
how do i change it from the default sliding from left to right (Forward) to right to left (backwards)
as i have a custom button thus i managed to program my custom button to go back to the root , however it slides from right to left thus causing user confusion
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能会使用这样的东西...
(需要)
这是一个自定义函数,可以将视图从右向左滑动(方向= 0),反之亦然(方向= 1)。
试一试吧。享受。
You might use something like this...
(Requires < QuartzCore/QuartzCore.h >)
That's a custom function that slides a view from right to left (direction = 0) or vice versa (direction = 1).
Give it a go. Enjoy.
与 Xen 的答案类似,请在此处下载示例代码。
Similar to Xen's answer, download the sample code here.