Searching SO for how to determine the status of push notifications in my app, I came across what I'm sure is basic syntax but I have not used nor seen before. Its an if statement. The user answer says, instead of:
if (types == UIRemoteNotificationTypeNone)
you can use
if (types & UIRemoteNotificationTypeAlert)
I have not seen the single '&' used before. Is it really just the same as '==' . Or is the single '&' only usable is certain conditions such as you would use 'isEqualTo..' instead of '==' when checking strings?
if so what are those conditions?