[翻译] ADPopupView 触摸弹出视窗
ADPopupView 触摸弹出视窗
https://github.com/Antondomashnev/ADPopupView
ADPopupView is an iOS drop-in classes that displays popup at custom point in custom view. It automatically drawing itself according current position and parent view bounds. ADPopupView providing some cusotmization mechanism and support two type: popup with text or popup with custom view.
ADPopupView是一个类,用来在指定的点上弹出一个视图视窗。它自动根据父视图bounds布局来绘制窗口。它提供了一些自定义的组件来支持两种类型的View:一种text或者自定义的View。
ADPopupView works on any iOS version only greater or equal than 4.3 and is compatible with only ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
ADPopupView能在任何大于4.3版本的iOS系统上运行,只支持ARC。添加如下框架即可:
Foundation.framework UIKit.framework CoreGraphics.frameworkYou will need LLVM 3.0 or later in order to build ADPopupView.
你需要使用 LLVM3.0以上(架构编译器)来编译ADPopupView。
Adding ADPopupView to your project Source filesThe simplest way to add the ADPopupView to your project is to directly add the source files and resources to your project.
直接将源码添加到你的工程中即可。
Download the latest code version or add the repository as a git submodule to your git-tracked project.下载最新源码 Open your project in Xcode, than drag and drop ADPopupView.h and ADPopupView.m from Source directory onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.将ADPopupView.m与ADpopupView.h 添加到你的Xcode中。 Include ADPopupView wherever you need it with #import "ADPopupView.h".引入头文件Usage
In ADPopupView project there is a demo UIViewController (as ViewController.m) which show a simple usage example. Just touch on simulator screen and ADPopupView will be shown at touch position.
在ADPopupView工程中已经包含了一个demo演示怎么来使用的示例,触摸模拟器屏幕,ADPopupView就会在触摸点绘制出一个视图窗口。
UGUI系列-鼠标移动到按钮上显示信息(Unity3D) 有时候图标不能很好的说明这个功能的解释,就需要一些说明性文字显示。就比如可以在鼠标移动到UI上面的时候显示文字。 那么如何在UGUI上,鼠标移动上去显示文字说明呢。 大家都知道,当鼠标移动到button按钮上面的时候会出现变化,主要是button这个组件在控制
相关文章
- 2021数模美赛A题翻译及思路
- Boost.Lockfree官方文档翻译
- 使用率太低!谷歌停止向中国大陆提供翻译服务
- IDEA翻译插件(Translation)不能用啦?
- 使用go构建彩云翻译的Alfred Workflow | 青训营笔记
- request 和require区别_合同翻译时如何区分使用request和require
- java作用域-翻译:⚡⛓️可视化的 JavaScript作用域(链)
- [翻译]PG15新特性-加速WAL日志归档
- 牛叉开源项目用GPT翻译代码!精通一门可能会玩转所有
- python写的翻译脚本详解编程语言
- MySQL数据库:最新技术翻译(科技译文mysql数据库)
- Linux 中国翻译组成立项目管理委员会,向正规化管理迈出一步
- 如何以翻译贡献参与开源社区
- 微软为翻译 App 带来方言语音选项,支持英语、西班牙语等
- jquery.ui.draggable中文文档(原文翻译)