forked from chrismiles/CMPopTipView
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README, LICENSE and copyright/license notices to source code.
- Loading branch information
1 parent
d8ec611
commit 72ac25a
Showing
12 changed files
with
243 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
Copyright (c) 2010 Chris Miles | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
CMPopTipView | ||
============ | ||
|
||
An iOS UIView subclass that displays a rounded rect "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, locating the "pointer" | ||
as necessary. | ||
|
||
A CMPopTipView can be dismissed by the user tapping on it. It can also | ||
be dismissed programatically. | ||
|
||
CMPopTipView is rendered entirely by Core Graphics. | ||
|
||
|
||
Screenshots | ||
----------- | ||
|
||
|iphone_demo_1| |iphone_demo_2| | ||
|
||
.. |iphone_demo_1| image:: http://farm5.static.flickr.com/4005/5191641030_969f04b315.jpg | ||
.. |iphone_demo_2| image:: http://farm5.static.flickr.com/4112/5191046667_db62f0a3e4.jpg | ||
|
||
|
||
Usage | ||
----- | ||
|
||
Example:: | ||
|
||
// Present a CMPopTipView pointing at a UIBarButtonItem in the nav bar | ||
CMPopTipView *navBarLeftButtonPopTipView = [[[CMPopTipView alloc] initWithMessage:@"A Message"] autorelease]; | ||
navBarLeftButtonPopTipView.delegate = self; | ||
[navBarLeftButtonPopTipView presentPointingAtBarButtonItem:self.navigationItem.leftBarButtonItem animated:YES]; | ||
// Dismiss a CMPopTipView | ||
[navBarLeftButtonPopTipView dismissAnimated:YES]; | ||
// CMPopTipViewDelegate method | ||
- (void)popTipViewWasDismissedByUser:(CMPopTipView *)popTipView { | ||
// Any cleanup code, such as releasing the CMPopTipView object if necessary | ||
} | ||
|
||
|
||
License | ||
------- | ||
|
||
CMPopTipView is released under the MIT license. See LICENSE for details. | ||
|
||
CMPopTipView is copyright (c) Chris Miles 2010. |