// // YBPopupMenuDeviceOrientationManager.h // YBPopupMenuDemo // // Created by liyuanbo on 2020/1/19. // Copyright © 2020 LYB. All rights reserved. // #import #import #import #import NS_ASSUME_NONNULL_BEGIN @protocol YBPopupMenuDeviceOrientationManager /** 根据屏幕旋转方向自动旋转 Default is YES */ @property (nonatomic, assign) BOOL autoRotateWhenDeviceOrientationChanged; @property (nonatomic, copy) void (^deviceOrientDidChangeHandle) (UIInterfaceOrientation orientation); + (id )manager; /** 开始监听 */ - (void)startMonitorDeviceOrientation; /** 结束监听 */ - (void)endMonitorDeviceOrientation; @end @interface YBPopupMenuDeviceOrientationManager : NSObject @end NS_ASSUME_NONNULL_END