TunerSettingView.h 828 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // TunerSettingView.h
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2022/10/20.
  6. //
  7. #import <UIKit/UIKit.h>
  8. typedef NS_ENUM(NSInteger, TUNETSETTING_ACTION) {
  9. TUNETSETTING_ACTION_INSTRUMENT,
  10. TUNETSETTING_ACTION_SURE,
  11. };
  12. typedef void(^TunerSettingCallback)(TUNETSETTING_ACTION action, NSInteger toneChangeRate, NSInteger frequence);
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface TunerSettingView : UIView
  15. @property (weak, nonatomic) IBOutlet UILabel *instrumentLabel;
  16. /// 乐器选择->变调情况
  17. @property (nonatomic, assign) NSInteger toneChangeRate;
  18. // A4频率
  19. @property (nonatomic, assign) NSInteger A4Frequence;
  20. @property (nonatomic, strong) NSString *transferPicthDesc;
  21. + (instancetype)shareInstance;
  22. - (void)tunerSettingAction:(TunerSettingCallback)callback;
  23. - (void)showView;
  24. @end
  25. NS_ASSUME_NONNULL_END