这一行代码具有预期的效果; xcode iphone 之前和一元减错误。就一根线而已!啊啊!

发布于 2024-09-13 15:51:57 字数 830 浏览 0 评论 0原文

好吧。所以我在这里问了一个问题,但我担心我自己回答了这个问题并结束了讨论。不知道我是否这样做了。这个问题可以在这里找到; 是我还是xcode...我的牙套出了问题,它只会导致错误!请帮忙! iPhone SDK + Urban Push

让我继续编写给出预期结果的代码;和一元减号(如果删除 -(VOID) ,它就会消失,但会导致另一个错误)

如果您需要完整的代码,则它位于较早的链接中

  //Register for notifications;
  [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |UIRemoteNotificationTypeSound |UIRemoteNotificationTypeAlert)]; 
  ;

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {  
 //ERROR HERE Wrong type argument to unary minus and semi colon b4 

,并且我无法在 Register 之后关闭该方法,因为 DeviceToken 的较低引用具有没有组织结构

Alright. So I asked a question here but I feared that I anwsered it myself and closed the dicussion. No Idea if I did that. That question is available here; Is it me or xcode... Somethings wrong with my braces and it just causes errors! Please help! iPhone SDK + Urban Push

let me go ahead with my code that gives the expected ; and unary minus (which goes away if -(VOID) is removed but then that causes another error)

its here if you need the full code its at the earlier link

  //Register for notifications;
  [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |UIRemoteNotificationTypeSound |UIRemoteNotificationTypeAlert)]; 
  ;

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {  
 //ERROR HERE Wrong type argument to unary minus and semi colon b4 

And I cant close the method after Register because then the lower references of DeviceToken have no organized structure

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缪败 2024-09-20 15:51:57

我不明白。我认为你上一个问题的答案是正确的。只需用右括号 } 关闭该方法即可。 “DeviceToken 的较低引用”是什么意思?我不明白

I don't understand. I think the answer in your previous question is correct. Just close the method with a closing bracket } . What do you mean by "lower references of DeviceToken". I don't get it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文