博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] ADPopupView 触摸弹出视窗
阅读量:6800 次
发布时间:2019-06-26

本文共 1766 字,大约阅读时间需要 5 分钟。

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。

Requirements

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.framework

You will need LLVM 3.0 or later in order to build ADPopupView.

你需要使用 LLVM3.0以上(架构编译器)来编译ADPopupView。

Adding ADPopupView to your project

Source files

The simplest way to add the ADPopupView to your project is to directly add the source files and resources to your project.

直接将源码添加到你的工程中即可。

  1. Download the  or add the repository as a git submodule to your git-tracked project.下载最新源码
  2. 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中。
  3. 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就会在触摸点绘制出一个视图窗口。

 

 

 

转载地址:http://tcfwl.baihongyu.com/

你可能感兴趣的文章
《深度探索C++对象模型》调用虚函数
查看>>
“ORA-01747: user.table.column, table.column 或列说明无效” 的解决方案
查看>>
Python命令行解析argparse常用语法使用简介
查看>>
Lambda 表达式
查看>>
手把手教你用python抢票回家过年 !(附代码)
查看>>
SilverLight1.1 之旅(二):添加事件
查看>>
【转】Javascript MD5编码
查看>>
Java:集合类的区别详解
查看>>
linux 内核库函数 【转】
查看>>
asp.net 判断是否是日期格式,判断是否是长日期格式,短日期格式,时间判断,日期判断,全部格式...
查看>>
理解 OpenStack Swift (3):监控和一些影响性能的因素 [Monitoring and Performance]
查看>>
聚会留念
查看>>
iOS:在使用Cocoapods安装shareSDK时出现的link路径错误
查看>>
Asp.net防止页面被多次提交
查看>>
ASP.NET MVC5+EF6+EasyUI 后台管理系统(29)-T4模版
查看>>
敏捷的 "道"
查看>>
ZigBee On Windows Mobile--1.背景和结构
查看>>
这两天说到的苹果软件中毒是个什么情况?
查看>>
IOS的消息传递机制,使用NSNotificationCenter进行通信,很实用
查看>>
开始使用Emacs
查看>>