괜찮습니다. 그래서 나는 여기서 질문을 던졌지 만, 나는 그것이 스스로에게 anwsered하고 dicussion을 닫을 것을 두려워했다. 내가 그랬다면 아무 생각도. 그 질문은 여기에 있습니다. Is it me or xcode... Somethings wrong with my braces and it just causes errors! Please help! iPhone SDK + Urban Push이 한 줄의 코드에는 예상되는 내용이 있습니다. 이전과 xcode 아이폰에 대한 단항 마이너스 오류. 그것은 단지 하나의 라인! 아!
내가 예상 한대로 내 코드를 만들어 보자. 및 단항 마이너스 (있는 경우 멀리 간다 - (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
그리고 난을 닫습니다 못할
을 이후에 DeviceToken의 하위 참조에 조직화 된 구조가 없으므로 Register 이후에 메서드가 호출됩니다.
가능한 복제본 [그것이 나 또는 xcode인가?] 내 중괄호에 잘못된 것이 있고 그것은 단지 오류를 일으킨다! 도와주세요! 아이폰 SDK + 도시 푸시] (http://stackoverflow.com/questions/3411650/is-it-me-or-xcode-somethings-wrong-with-my-braces-and-it-just-causes-errors-p) –
이전 질문을 업데이트해야하는 경우 새 질문을하지 말고 원본을 편집하십시오. –