Code Monkey home page Code Monkey logo

lqiminputview's Introduction

LQ系列 -- APP 项目模板 V1.0(高阶)

项目开发模板-按需登录型应用 - https://github.com/XZTLLQ/LQProject-NoLogin

项目开发模板-强制登录型应用 - https://github.com/XZTLLQ/LQProject-MustLogin

注意:此模板是自己的设计,虽然称不上是神作,但是有很多地方有非常好的设计点能帮助开发者快速构建项目,用过的都表示赞👍 !!!

LQ系列--UI

LQPhotoPickerDemo - https://github.com/XZTLLQ/LQClass (可节约项目大量细节调控时间,体验好!)

LQPhotoPickerDemo - https://github.com/XZTLLQ/LQPhotoPickerDemo (选择图片上传)

LQIMInputView - https://github.com/XZTLLQ/LQIMInputView (聊天页面工具栏)

LQIMInputView

效果图

如图功能,集成方便

使用方法:

1.“LQIMInputView”目录文件即为集成所需文件:

InputItem  .h&.m
InputItemModel  .h&.m
LQCollectionViewHorizontalLayout  .h&.m
LQIMInputVie  .h&.m

2.使用方法:

//第一步
self.inputView = [[LQIMInputView alloc] initWithFrame:CGRectMake(0, [UIScreen mainScreen].bounds.size.height-210, [UIScreen mainScreen].bounds.size.width, 210)];
//第二步
    self.inputView.backgroundColor = [UIColor colorWithRed:248.0/255.0 green:248.0/255.0 blue:248.0/255.0 alpha:1.0];
//第三步
    [self.inputView addItem:[InputItemModel initWithTitle:@"相册" imageName:@"tupian" clickedBlock:^{
        NSLog(@"相册");
    }]];
    [self.inputView addItem:[InputItemModel initWithTitle:@"拍照" imageName:@"zhaoxian" clickedBlock:^{
        NSLog(@"拍照");
    }]];
    [self.inputView addItem:[InputItemModel initWithTitle:@"加价" imageName:@"jiajia" clickedBlock:^{
        NSLog(@"加价");
    }]];
    [self.inputView addItem:[InputItemModel initWithTitle:@"确认完成" imageName:@"queren" clickedBlock:^{
        NSLog(@"确认完成");
    }]];
    [self.inputView addItem:[InputItemModel initWithTitle:@"联系客服" imageName:@"kefu" clickedBlock:^{
        NSLog(@"联系客服");
    }]];
    [self.inputView addItem:[InputItemModel initWithTitle:@"电话联系" imageName:@"dianhau" clickedBlock:^{
        NSLog(@"电话联系");
    }]];
//第四步
    [self.view addSubview:self.inputView];

lqiminputview's People

Contributors

xztl avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli 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.