JXPlayerOverlay.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // JXPlayerOverlay.m
  3. // AICity
  4. //
  5. // Created by TogetherWatch on 2025-10-13.
  6. //
  7. #import "JXPlayerOverlay.h"
  8. @implementation JXPlayerOverlay
  9. - (instancetype)initWithFrame:(CGRect)frame {
  10. self = [super initWithFrame:frame];
  11. if (self) {
  12. [self setupUI];
  13. }
  14. return self;
  15. }
  16. - (void)setupUI {
  17. // TODO: 创建所有UI元素
  18. // 参考quickstart.md中的详细实现:
  19. // - 顶部标题横幅
  20. // - 右侧交互按钮(关注、点赞、评论、收藏、分享)
  21. // - 底部信息覆盖层
  22. // - 底部导航栏
  23. }
  24. - (void)configureWithDrama:(JXDrama *)drama
  25. episode:(JXEpisode *)episode
  26. interaction:(JXInteraction *)interaction {
  27. // TODO: 更新UI元素数据
  28. // - 顶部横幅:episode.title, episode.isPaid
  29. // - 底部信息:drama.title, drama.authorInfo, drama.category
  30. // - 交互数据:interaction.formattedLikeCount等
  31. }
  32. - (void)showUI {
  33. [UIView animateWithDuration:0.3 animations:^{
  34. self.alpha = 1.0;
  35. }];
  36. }
  37. - (void)hideUI {
  38. [UIView animateWithDuration:0.3 animations:^{
  39. self.alpha = 0.0;
  40. }];
  41. }
  42. @end