这一行代码具有预期的效果; xcode iphone 之前和一元减错误。就一根线而已!啊啊!
好吧。所以我在这里问了一个问题,但我担心我自己回答了这个问题并结束了讨论。不知道我是否这样做了。这个问题可以在这里找到; 是我还是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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不明白。我认为你上一个问题的答案是正确的。只需用右括号 } 关闭该方法即可。 “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