07865467

所属分类:图形图像处理
开发工具:Objective-C
文件大小:37KB
下载次数:3
上传日期:2013-12-06 11:32:13
上 传 者fdafdafda
说明:  黄色背景的警告提示弹出条,精选ios编程学习源码,很好的参考资料。
(The yellow background warning pop-up, selection of learning IOS programming source code, a good reference.)

文件列表:
.DS_Store (6148, 2012-04-09)
LICENSE.md (1112, 2012-04-09)
YRDropdownExample (0, 2012-04-09)
YRDropdownExample.xcodeproj (0, 2012-04-09)
YRDropdownExample.xcodeproj\project.pbxproj (14972, 2012-04-09)
YRDropdownExample.xcodeproj\project.xcworkspace (0, 2012-04-09)
YRDropdownExample.xcodeproj\project.xcworkspace\contents.xcworkspacedata (162, 2012-04-09)
YRDropdownExample\AppDelegate.h (378, 2012-04-09)
YRDropdownExample\AppDelegate.m (2518, 2012-04-09)
YRDropdownExample\dropdown-alert.png (3937, 2012-04-09)
YRDropdownExample\dropdown-alert@2x.png (2851, 2012-04-09)
YRDropdownExample\en.lproj (0, 2012-04-09)
YRDropdownExample\en.lproj\InfoPlist.strings (45, 2012-04-09)
YRDropdownExample\en.lproj\ViewController.xib (14053, 2012-04-09)
YRDropdownExample\main.m (350, 2012-04-09)
YRDropdownExample\ViewController.h (387, 2012-04-09)
YRDropdownExample\ViewController.m (1693, 2012-04-09)
YRDropdownExample\YRDropdownExample-Info.plist (1214, 2012-04-09)
YRDropdownExample\YRDropdownExample-Prefix.pch (337, 2012-04-09)
YRDropdownExample\YRDropdownView (0, 2012-04-09)
YRDropdownExample\YRDropdownView\bg-yellow.png (2931, 2012-04-09)
YRDropdownExample\YRDropdownView\bg-yellow@2x.png (1092, 2012-04-09)
YRDropdownExample\YRDropdownView\YRDropdownView.h (2196, 2012-04-09)
YRDropdownExample\YRDropdownView\YRDropdownView.m (13698, 2012-04-09)
YRDropdownView (0, 2012-04-09)
YRDropdownView\bg-yellow.png (2931, 2012-04-09)
YRDropdownView\bg-yellow@2x.png (1092, 2012-04-09)
YRDropdownView\YRDropdownView.h (3551, 2012-04-09)
YRDropdownView\YRDropdownView.m (18023, 2012-04-09)

## YRDropdownView ![Sample](https://github.com/onemightyroar/YRDropdownView/raw/gh-pages/images/screenshot.png "Sample") YRDropdownView is a view library for displaying stylish alerts, warnings, and errors. Based on Tweetbot's implementation, [MKInfoPanel](https://github.com/MugunthKumar/MKInfoPanelDemo) by Mugunth Kumar, [MBProgressHUD](https://github.com/jdg/MBProgressHUD) by Matej Bukovinski and [DSActivityView](https://github.com/joycodes/DSActivityView) by David Sinclair, among other influences. Its API has been hashed out to make the code easily implemented and very versatile. ### Using YRDropdownView in your project? Be sure to contact me and let me know, I'd love to give your app some promo love. See the Contact section below to let me know! ## Installation To use YRDropdownView: 1. Copy over the `YRDropdownView` folder to your project folder. (Note: currently, the background is being drawn using a stretchable image, `bg-yellow.png`. Should you choose to supply your own background, you only need the `YRDropdownView.h\.m` files) 2. Enjoy! ## Usage Wherever you want to use YRDropdownView, import the header file as follows: ``` objective-c #import "YRDropdownView.h" ``` ### Basic You can create your dropdown by calling the singleton method: ``` objective-c [YRDropdownView showDropdownInView:self.view title:@"Warning" detail:@"Danger Will Robinson. You cannot do that."]; ``` By default, calling the above method will only dismiss when clicked on. To dismiss, then call: ``` objective-c [YRDropdownView hideDropdownInView:self.view]; ``` ### Customizing There are many different ways to customize the alert by calling different singleton methods: ``` objective-c + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail animated:(BOOL)animated; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image animated:(BOOL)animated; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image animated:(BOOL)animated hideAfter:(float)delay; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image backgroundImage:(UIImage *)backgroundImage animated:(BOOL)animated hideAfter:(float)delay; + (YRDropdownView *)showDropdownInView:(UIView *)view title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image backgroundImage:(UIImage *)backgroundImage titleLabelColor:(UIColor *)titleLabelColor detailLabelColor:(UIColor *)detailLabelColor animated:(BOOL)animated hideAfter:(float)delay; + (BOOL)hideDropdownInView:(UIView *)view; + (BOOL)hideDropdownInView:(UIView *)view animated:(BOOL)animated; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail animated:(BOOL)animated; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image animated:(BOOL)animated; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image animated:(BOOL)animated hideAfter:(float)delay; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image backgroundImage:(UIImage *)backgroundImage animated:(BOOL)animated hideAfter:(float)delay; + (YRDropdownView *)showDropdownInWindow:(UIWindow *)window title:(NSString *)title detail:(NSString *)detail image:(UIImage *)image backgroundImage:(UIImage *)backgroundImage titleLabelColor:(UIColor *)titleLabelColor detailLabelColor:(UIColor *)detailLabelColor animated:(BOOL)animated hideAfter:(float)delay; + (BOOL)hideDropdownInWindow:(UIWindow *)window; + (BOOL)hideDropdownInWindow:(UIWindow *)window animated:(BOOL)animated; ``` ## Notes ### Automatic Reference Counting (ARC) support ARC support has been neglected in part for now. Your contributions are more than welcome, however. If you want to use YRDropdownView in an ARC project, just add the [add the ``` objective-c -fno-objc-arc ``` compiler flag](http://stackoverflow.com/questions/6***6052/how-can-i-disable-arc-for-a-single-file-in-a-project) to all YRDropdownView files in your project. ## Contact - http://github.com/eliperkins - http://twitter.com/e_perkins1 - eli@onemightyroar.com ## License ### MIT License Copyright (c) 2012 One Mighty Roar (http://onemightyroar.com) 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.

近期下载者

相关文件


收藏者