Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

burtworld/QLPopView

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QLPopView

CI Status Version License Platform

Troduce

QLPopView 自定义弹框View,可以自定义显示的方向,显示的内容等

Usage

  1. 弹出一个Label
	UILabel *lable = [[UILabel alloc]initWithFrame:CGRectZero];
	lable.text = @"显示文字";
	lable.font = [UIFont systemFontOfSize:14.0f];
	lable.textColor = [UIColor yellowColor];
	[lable sizeToFit];
	QLPopView *popView = [QLPopView new];
	[popView showAtView:sender contentView:lable];
  1. 弹出一个ImageView
	UIImageView *imgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"timg.jpeg"]];
	
	QLPopView *popView = [QLPopView new];
	[popView showAtPoint:CGPointMake(sender.center.x, CGRectGetMaxY(sender.frame)) dirction:QLPop_Direction_Down contentView:imgView containerView:self.view];
  1. 弹出一个TableView
	QLPopTableView *popTableView = [QLPopTableView new];
	NSArray *array = @[
	[QLPopItemModel itemWithItemName:@"银行1" itemImage:[UIImage imageNamed:@"bank_0"]],
	[QLPopItemModel itemWithItemName:@"银行2" itemImage:[UIImage imageNamed:@"bank_1"]],
	[QLPopItemModel itemWithItemName:@"银行3" itemImage:[UIImage imageNamed:@"bank_2"]],
	];
	[popTableView showAtView:sender rowHeight:44 items:array selectBlock:^(NSInteger index) {
	NSLog(@"选择了--%zd",index);
	}];

Example

使用情况详见我的 Demo仓库. 里面还包含其他的库

Installation

QLPopView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QLPopView'

Author

paramita, baqkoo007@aliyun.com

License

QLPopView is available under the MIT license. See the LICENSE file for more info.

About

pop弹出框,可自定义组件

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.