UIRemoveNotificationType invalid conversion

Posted by Daniel Wood on Stack Overflow See other posts from Stack Overflow or by Daniel Wood
Published on 2010-04-06T11:35:36Z Indexed on 2010/04/06 11:43 UTC
Read the original article Hit count: 172

Filed under:
|
|

Hi,

I'm trying to use this fairly standard line of code in my app:

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];

But am receiving the follow error:

error: invalid conversion from 'int' to 'UIRemoteNotificationType'

It works if I only use one of the notification types but fails every time if I try and use more than one. Any ideas what I'm doing wrong?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk