隐藏/显示子视图
我有一个子视图,通过“对于初学者来说,我将如何制作它”加载
[super viewWillAppear: animated];
[self.view addSubview: self.webView ];
self.webView.frame = CGRectMake(0, 911, 768, 52);
self.webView.delegate = self;
,以便我可以在其启动后将其隐藏,然后通过双击应用程序底部再次显示它。以及我如何让它动画化以便它上下滑动
I have a subview that loads via
[super viewWillAppear: animated];
[self.view addSubview: self.webView ];
self.webView.frame = CGRectMake(0, 911, 768, 52);
self.webView.delegate = self;
For starters how would i make it so i can hide it once its up and then show it again via double clicking the bottom of the app. and also how would i make it animated so it slides up and down
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想对上下滑动的视图进行动画处理,则必须对其属性进行动画处理,或者我建议您使用presentModalViewControlleranimated:YES
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference .html
If you want to animate the view that it slides up and down, you have to animate its properties, or what I would suggest you is to use presentModalViewController animated:YES
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html