Skip to content

LIYANGSHUAI/LYSPopController

Repository files navigation

LYSPopController

当前支持最高版本:0.0.3

LYSPopController is mainly a user page pops up a pop-up window in response to an event, prompting user information

iOS技术群群二维码

-> LYSPopController (版本号)
LYSPopController,I hope everyone will give me some advice during the process of use. I want to go further."
s.description.
pod 'LYSDatePicker', '~> 版本号'
- Homepage: https://github.com/LIYANGSHUAI/LYSPopController
- Source:   https://github.com/LIYANGSHUAI/LYSPopController.git
- Versions: 版本列表 [master repo]
(END)

弹窗

具体效果图:

上 下 左 右

UIView *view = [[UIView alloc] init];
view.backgroundColor = [UIColor redColor];
view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame)-20, 120);
LYSPopController *popVC = [[LYSPopController alloc] initWithStyle:(LYSPopStyleTop) popSpacing:120 customView:view];;
[self alertPopController:popVC];
UIView *view = [[UIView alloc] init];
view.backgroundColor = [UIColor redColor];
view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame)-20, 120);
LYSPopController *popVC = [[LYSPopController alloc] initWithStyle:(LYSPopStyleBottom) popSpacing:120 customView:view];;
[self alertPopController:popVC];
UIView *view = [[UIView alloc] init];
view.backgroundColor = [UIColor redColor];
view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame)-20, 120);
LYSPopController *popVC = [[LYSPopController alloc] initWithStyle:(LYSPopStyleLeft) popSpacing:120 customView:view];;
[self alertPopController:popVC];
UIView *view = [[UIView alloc] init];
view.backgroundColor = [UIColor redColor];
view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame)-20, 120);
LYSPopController *popVC = [[LYSPopController alloc] initWithStyle:(LYSPopStyleRight) popSpacing:120 customView:view];;
[self alertPopController:popVC];
UIView *view = [[UIView alloc] init];
view.backgroundColor = [UIColor redColor];
view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame)-20, 120);
LYSPopController *popVC = [[LYSPopController alloc] initWithStyle:(LYSPopStyleCenter) popSpacing:120 customView:view];;
[self alertPopController:popVC];

About

一个可以满足日常开发的弹窗

Resources

License

Stars

Watchers

Forks

Packages

No packages published