GithubHelp home page GithubHelp logo

ioscoderlijie / fkgpopselected Goto Github PK

View Code? Open in Web Editor NEW

This project forked from againbike1/fkgpopselected

0.0 2.0 0.0 241 KB

Pop 弹出一个可以有多个选项的框框(类似QQ)

Objective-C 100.00%

fkgpopselected's Introduction

FKGPopSelected

####使用方法: 1.导入两个文件(FKGPopOption.h&&.m)
2.在需要的地方添加如下代码:

由convertRect: toView 获取到屏幕上该控件的绝对位置。
UIWindow *window = [[UIApplication sharedApplication].delegate window];
CGRect frame = [optionButton convertRect:optionButton.bounds toView:window];

FKGPopOption *s = [[FKGPopOption alloc] initWithFrame:self.view.bounds];
s.option_optionContents = @[@"首页", @"个人中心", @"问题一箩筐", @"任务管理",@"有奖问答"];
s.option_optionImages = @[@"select1",@"select2",@"select3",@"select4",@"select5"];

// 使用链式语法直接展示 无需再写 [s option_show];
[[s option_setupPopOption:^(NSInteger index, NSString *content) {
    NSLog(@"你选中了第%ld行 选项为:%@", index, content);
} whichFrame:frame animate:YES] option_show];

fkgpopselected's People

Contributors

forkingghost avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.