zhenlintie / STModalDemo

弹出视图(通知,提示,选择,窗口)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

自定义弹出视图

STModal介绍

特点

1. 只需关心需要弹出的视图
2. 可自定义动画
3. 当弹出多个视图时,以栈的方式显示

更新

2015-08-14 优化了显示方式,增加了一个显示方式STFrontModal

用法

UIView *contentView = [UIView new];
...

STModal *modal = [STModal modalWithContentView:contentView];
[modal show:YES];

//或者
STModal *modal = [STModal modal];
[modal showContentView:contentView animated:YES];

截图

STAlertView

  • 基于STModal做的一个提示视图。

  • 效果图

STActionSheet

  • 基于STModal做的一个选择视图。

  • 效果图

STFrontModal

About

弹出视图(通知,提示,选择,窗口)

License:MIT License


Languages

Language:Objective-C 100.0%