kgmodal - 以后写个页面模态的东西弹出可直接用这个来,快
来源:互联网 发布:办公软件定制 编辑:程序博客网 时间:2024/05/16 07:18
http://www.cocoacontrols.com/controls/kgmodal
GModal is an easy drop in control that allows you to display any view in a modal popup. The modal will automatically scale to fit the content view and center it on screen with nice animations!
You supply your own content view and KGModal does the rest:
[[KGModal sharedInstance] showWithContentView:contentView andAnimated:YES];
There are a couple other options but it's purposely designed to be simple and easy to use:
// Determines if the modal should dismiss if the user taps outside of the modal view// Defaults to YES@property (nonatomic) BOOL tapOutsideToDismiss;// Determins if the close button or tapping outside the modal should animate the dismissal// Defaults to YES@property (nonatomic) BOOL animateWhenDismissed;// Determins if the close button is shown// Defaults to YES@property (nonatomic) BOOL showCloseButton;// The background color of the modal window// Defaults black with 0.5 opacity@property (strong, nonatomic) UIColor *modalBackgroundColor;// The background display style, can be a transparent radial gradient or a transparent black// Defaults to gradient, this looks better but takes a bit more time to display on the retina iPad@property (nonatomic) enum KGModalBackgroundDisplayStyle backgroundDisplayStyle;// The shared instance of the modal+ (id)sharedInstance;// Set the content view to display in the modal and display with animations- (void)showWithContentView:(UIView *)contentView;// Set the content view to display in the modal and whether the modal should animate in- (void)showWithContentView:(UIView *)contentView andAnimated:(BOOL)animated;// Hide the modal with animations- (void)hide;// Hide the modal with animations,// run the completion after the modal is hidden- (void)hideWithCompletionBlock:(void(^)())completion;// Hide the modal and whether the modal should animate away- (void)hideAnimated:(BOOL)animated;// Hide the modal and whether the modal should animate away,// run the completion after the modal is hidden- (void)hideAnimated:(BOOL)animated withCompletionBlock:(void(^)())completion;
Check out the ExampleApp to see it in action!
- kgmodal - 以后写个页面模态的东西弹出可直接用这个来,快
- 给大家推荐个东西,苹果299刀的企业账号发布,用这个直接变成免费
- 做个ActionBar的标记,以后翻译这个文章用
- 好久没有在这里写东西了。以后要关注这个东西啊。
- 来的太快的东西,去的也快
- 以后要好好用这个博客把自己的东西记录下来
- 第一次来这个论坛,写个文章
- mark一下这个项目做完以后需要整理的东西
- 基于easyui的弹出窗口,自己留个以后用
- KGmodal的基本用法
- 记录自己写的第一个有用的东西《网页收集信息直接录入Excel中》
- 做了个统一的页面,方便以后使用,记得先备份原版首页再添加这个页面哦!
- 经常弹出的404页面是什么东西?
- [转] Excel表格的35招必学秘技(学会计的快来转载,留着以后用)
- 帮我把这个改一下~写个正确的~谢谢 用C++求两个整数的最大值 谁来告诉我这个程序错在哪儿啦
- 写自己想出来的东西
- 来个轻松的:【zt】最牛的插嘴! 写这个的人是个人才
- 暗黑3的api - 可以考虑以后做游戏直接用这个api去获取人物和头像,不错的
- [delphi]indy idhttp post方法
- 密码界面
- webdriver学习
- 随笔
- 暗黑3的api - 可以考虑以后做游戏直接用这个api去获取人物和头像,不错的
- kgmodal - 以后写个页面模态的东西弹出可直接用这个来,快
- KGNoise - 给视图、颜色、图片加上磨光效果~ 哈哈
- Segmented Control - 仿 app store的Segmented Control
- PTSSpringboard - 仿苹果主页的菜单效果
- 联系人选择器
- jQuery 得到后台的数据出现乱码之解决方法
- 简单的浏览器控件 - JHWebBrowser
- 文件夹访问页面
- 图片特效处理 DLCImagePickerController