Skip to content

yichizhang/CMPopTipView_Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMPopTipView_Swift

I've been very interested in the implementation of CMPopTipView. So I rewrote it in Swift to learn its implementation and also practise iOS programming.


Screenshot Screenshot Screenshot

Introduction

CMPopTipView is an iOS UIView subclass that displays a rounded rectangle "bubble", containing a text message, pointing at a specified button or view.

A CMPopTipView will automatically position itself within the view so that it is pointing at the specified button or view, positioning the "pointer" as necessary.

A CMPopTipView can be pointed at any UIView within the containing view. It can also be pointed at a UIBarButtonItem within either a UINavigationBar or a UIToolbar and it will automatically position itself to point at the target.

The background and text colors can be customised if the defaults are not suitable.

Two animation options are available for when a CMPopTipView is presented: "slide" and "pop".

A CMPopTipView can be dismissed by the user tapping on it. It can also be dismissed programatically.

CMPopTipView is rendered entirely by Core Graphics.

The source includes a universal (iPhone/iPad) demo app.

一个泡泡风格的提示框开源控件, 继承自UIView。iPad, iPhone通用。

Attribution

This project is based on CMPopTipView by Chris Miles miles.chris@gmail.com.

About

CMPopTipView rewritten in Swift. Custom UIView for iOS that pops up an animated "bubble" pointing at a button or other view. Useful for popup tips.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published