PPDragDropBadgeView

https://github.com/smallmuou/PPDragDropBadgeView

PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view.

PPDragDropBadgeView是一个badge视图,可以进行拖拽,像QQ5.0中的badge视图。

  • Support iOS 5.0+ ARC 支持 iOS5.0+ 以及ARC

Configure

  • Checkout PPDragDropBadgeView from github. 从github上查询PPDragDropBadgeView
  • Copy PPDragDropBadgeView folder to your project. 将PPDragDropBadgeView文件夹拖到你的项目当中
  • Go to 'TARGET' -> 'Build Phases' -> 'Complile Sources', add compliler flags '-fno-objc-arc' for 'PRTween.m' and 'PRTweenTimingFunctions.m' 到'TARGET' -> 'Build Phases' -> 'Complile Sources',添加编译标签'-fno-objc-arc'到 'PRTween.m' 与 'PRTweenTimingFunctions.m' 中
  • Done.

You can also refer to the example project provided by me.

你也可以直接参考这个我写的例子。

Usage

  • Q: How to use PPDragDropBadgeView? 怎么使用PPDragDropBadgeView?
  • A: Very simple, you only follow the down code. 非常简单,用下面的代码片段即可。

    PPDragDropBadgeView* badgeView \
    = [[PPDragDropBadgeView alloc] initWithSuperView:self.testViewlocation:CGPointMake(0,0)radius:10.0f dragdropCompletion:^{NSLog(@"Drag drop done.");}];
    badgeView.text = @"6";
    
  • Q: Does it can be customized? 这个是否支持更多参数的定制呢?

  • A: Of course, you can set "location", "radius", "tintColor", "borderWidth", "borderColor". You can see the propertys provided by me. 当然,你可以设置“位置”,“半径”,“填充颜色”,“边框宽度”,“边框颜色”。你也可以设置以下我提供的一些属性。

    /** The location of badge view. */
    @property (nonatomic, assign) CGPoint location;/** The radius of badge view. */
    @property (nonatomic, assign) CGFloat radius;/** The completion block when drag drop done. */
    @property (nonatomic, copy) void(^dragdropCompletion)();/** The tint color of badge view. Default is red */
    @property (nonatomic, strong) UIColor* tintColor;/** The border color of badge view. Default is clear */
    @property (nonatomic, strong) UIColor* borderColor;/** The border width of badge view. Default is 1.0f */
    @property (nonatomic, assign) CGFloat borderWidth;/** The text of badge view. */
    @property (nonatomic, strong) NSString* text;
    

History

  • v1.0 (March 30, 2015)

    • First release.

License

The code follows MIT Lisence.

Contact

If you have any questions with use it or found some bugs, you can mail to me. I will get back to you in time. The follow is my email address: lvyexuwenfa100@126.com

[翻译] PPDragDropBadgeView相关推荐

  1. Mysql函数group_concat、find_in_set 多值分隔字符字段进行数据库字段值翻译

    Mysql函数group_concat.find_in_set进行数据库字段值翻译 场景 配方表:记录包含的原料 sources表示原料,字段值之间用逗号分隔 原料表:对应原料id和原料名称 现需要查 ...

  2. “Attention is All You Need 翻译

    <p><img src="output_0_0.png" alt="png"></p> "Attention is ...

  3. 基于PyTorch的Seq2Seq翻译模型详细注释介绍(一)

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/qysh123/article/deta ...

  4. 全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样 ...

  5. 全文翻译(四) TVM An Automated End-to-End Optimizing Compiler

    全文翻译(四) TVM An Automated End-to-End Optimizing Compiler 6.3 嵌入式GPU评估 对于移动GPU实验,在配备ARM Mali-T860MP4 G ...

  6. 全文翻译(三) TVM An Automated End-to-End Optimizing Compiler

    全文翻译(三) TVM An Automated End-to-End Optimizing Compiler 5. 自动化优化 考虑到一组丰富的调度原语,剩下的问题是为DL模型的每一层,找到最佳的算 ...

  7. 全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 3.优化计算图 计算图是在DL框架中表示程序的常 ...

  8. 全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样的硬件 ...

  9. YOLOv4全文阅读(全文中文翻译)

    YOLOv4全文阅读(全文中文翻译) YOLOv4: Optimal Speed and Accuracy of Object Detection 论文链接: https://arxiv.org/pd ...

最新文章

  1. VTK:绘制bottle瓶子用法实战
  2. 使用JavaScript中的示例编号MAX_VALUE属性
  3. 容量耦合系数模型_期刊在线 | 基于ALE流固耦合方法的刷式密封泄漏特性理论与实验研究...
  4. word20161206
  5. php curl 发送post请求带参数
  6. wsdl 架构验证警告:来自命名空间_金九银十,正在面试吗?面试官必问:JVM架构解读,查漏补缺...
  7. 深入浅出hive-hive简介
  8. String.valueOf()方法的使用总结
  9. Session登陆后丢失的解决办法。
  10. java判断三个数字范围是否有交集_Python基础1之数字
  11. 关于STM32 IAP升级之为什么APP执行要0x2FFE0000这个数值的原因(基于STM32F446RET6)
  12. 澳洲电源和电池充电器对应标准的公告将强制执行2022年6月15日起
  13. Zeppelin集成Spark3
  14. BP神经网络的数学表达式
  15. 三菱伺服调试软件MR-j2-CT
  16. npm打包报错ERROR in ./src/main/webapp/app/core解决方法
  17. android intent.action pick,android intent pick
  18. 【搞定Java并发编程】第24篇:Java中的并发工具类之CountDownLatch
  19. 如何用python统计英语文章词频?
  20. (完整项目系统)人工智能医疗健康管理疾病诊断分析系统,医疗健康机器人系统框架

热门文章

  1. 拆解百度自动驾驶最新动作:Apollo企业版和Apollo 3.5里的生意经和新风向 | CES 2019...
  2. SPI子系统分析之二:数据结构【转】
  3. 利用http-server测试vue-cli打包后的项目
  4. Android+Jquery Mobile学习系列(3)-创建Android项目
  5. 一种C/S架构下的 RSA + AES 组合加密方案业务流程
  6. 你自认为理解了JavaScript?
  7. wow 私服trinitycore
  8. 王大珩追悼会举行 上千人雨中送别“光学之父”
  9. Xp账号变成temp
  10. [07-01]http网页提示含义