Rightpoint / RaisinToast

A UIWindow subclass used to message information to the users of your app.
MIT License
83 stars 14 forks source link

Fix conflicting interface orientation return type #25

Closed adolfo closed 9 years ago

adolfo commented 9 years ago

This changes theRZMessagingWindow supportedInterfaceOrientations return type from NSUInteger to UIInterfaceOrientationMask to silence compiler warnings about conflicting types.

ZevEisenberg commented 9 years ago

It will fix the warning in Xcode 7, but cause a new warning Xcode 6. Might want to use conditional macros to check the SDK version.

adolfo commented 9 years ago

@ZevEisenberg added a conditional to check SDK version

cmds4410 commented 9 years ago

This should fix #28 I believe

ZevEisenberg commented 9 years ago

@cmds4410 this won’t fix a crash, because this just changes the hint to the compiler about the return type. Don’t think it would fix an infinite loop.