https://github.com/mosheberman/mbcallout
A custom UIView subclass that can be shown as a callout to a UIButton.
https://github.com/mosheberman/mbcallout
Last synced: 2 months ago
JSON representation
A custom UIView subclass that can be shown as a callout to a UIButton.
- Host: GitHub
- URL: https://github.com/mosheberman/mbcallout
- Owner: MosheBerman
- Created: 2012-12-04T19:58:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-04T20:50:51.000Z (over 13 years ago)
- Last Synced: 2025-12-30T18:11:33.438Z (6 months ago)
- Language: Objective-C
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MBCallout
=========
A custom UIView subclass that can be shown as a callout to a UIButton.
**How To Use:**
0. Add MBCalloutView.h, MBCalloutView.m, UIButton+Callout.h and UIButton+Callout.m to your project.
1. #import "UIButton+Callout.h"
2. // Create any UIButton you'd like
3. [button setCalloutTitle:@"This is a callout with some text in it."];
4. [button addTarget:button action:@selector(showCallout) forControlEvents:UIControlEventTouchUpInside];
5. // Position and show the button.