using (_allowedOrientation & interfaceOrientation) != 0 to check whether a specific orientation is allowed is definitely incorrect, since OrientationMask is only available in iOS 6, therefore, in order to reduce the total amount of code changes, I decide to write a custom orientation mask macro to force convert UIInterfaceOrientation into UIInterfaceOrientationMask. The solution wasn't good, could be discuss in further.
git pull https://github.com/inonomori/BeeFramework master
Or view, comment on, or merge it at:
https://github.com/gavinkwoe/BeeFramework/pull/34