YQGuideView 0.4.0

YQGuideView 0.4.0

yin qiong 维护。



  • 作者:
  • yinqiong

YQGuideView

CI Status Version License Platform

示例

考虑到 UI 设计层面每个 App 都有自己的风格,该视图只提供最简单的显示。如果要更多功能,可以 pod 集成后继承,例如:// 给某个 cell 中的视图做引导 YQPageGuideWindow,继承自 YQGuideView

YQPageGuideWindow *guide = [[YQPageGuideWindow alloc] initWithView:taskCell.taskView];
// 边缘间距
guide.offset = UIEdgeInsetsMake(-5, -5, -taskCell.taskView.avgTimeInfoView.top, 5);
// 缕空显示的类型,这里是圆角
guide.cornerType = YQWinCornerTypeRound;
// 引导做介绍的图
UIImage *image = [UIImage imageNamed:@"pic_mock_report_new_function_default"];
CGFloat x = 29;
// winFrame记录了当前缕空的实际frame,这里用于iamgeView的计算
CGFloat y = guide.winFrame.origin.y + guide.winFrame.size.height + 10;
CGRect frame = CGRectMake(x, y, image.size.width, image.size.height);
// 添加iamgeView
[guide appendAnnotatedImage:image frame:frame];

要求

安装

YQGuideView 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中即可

pod 'YQGuideView'

作者

yinqiong, Hyperlink

许可证

YQGuideView 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。