Ipad/Iphone UIActionSheet
我只在这里发过几次帖子,人们的回复非常迅速且非常有帮助,所以谢谢。
我尝试在我的 iPad 应用程序中使用 UIActionsheet 元素。但为了混淆问题,我也使用 Cocos2d。
但这是我的问题。
如果不使用 cocos2d 编写操作表,您将使用以下代码。
[actionSheet showInView:self.view];
然而,因为我使用 cocos2d 并且没有这样的视图,所以我唯一能想到的参考就是窗口。但这位于 appdelegate 类中。
我尝试过
[actionSheet showInView:self.Window];
,但出现错误,
有什么帮助吗?
Ive only posted on here a couple of times and people have been very quick and very helpful when responding so thanks.
Im trying to use the UIActionsheet element in my Ipad application. But just to confuse matters im using Cocos2d aswell.
But here is my problem.
If coding the actionsheet with out cocos2d you would use the following code.
[actionSheet showInView:self.view];
However because im using cocos2d and there is no views as such the only thing i can think of to reference is the window.. But this is located in the appdelegate class.
ive tried
[actionSheet showInView:self.Window];
and i get errors
any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你尝试过吗
?如果这不起作用,也请尝试
Have you tried
? If this doesn't work, try also