GithubHelp home page GithubHelp logo

kb100824 / zpactionsheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geekzp/zpactionsheet

0.0 2.0 0.0 590 KB

简单的两种弹窗方式 一种适用于9宫格类型的分享,另一种适用于替换系统的actionsheet,所有文字的大小颜色均可以自定义

Objective-C 100.00%

zpactionsheet's Introduction

ZPActionSheet

简单的两种弹窗方式 一种适用于9宫格类型的分享,另一种适用于替换系统的actionsheet,所有文字的大小颜色均可以自定义

版本更新

2015-06-06---version 1.2 1.新增弹窗蒙板透明度设置

效果

image

image

使用方法详见demo

.h属性介绍

typedef enum {

ShowTypeIsShareStyle = 0,  //9宫格类型的  适合分享按钮

ShowTypeIsActionSheetStyle  //类似系统的actionsheet的类型

} ShowType;

  • 初始化actionView
  • @param titleArray 标题数组
  • @param imageArr 图片数组(如果不需要的话传空数组(@[])进来)
  • @param protitle 最顶部的标题 不需要的话传@""
  • @param type 两种弹出类型(枚举)
  • @return wu
  • (id)initWithShareHeadOprationWith:(NSArray *)titleArray andImageArry:(NSArray *)imageArr andProTitle:(NSString *)protitle and:(ShowType)type;

//点击按钮block回调 @property (nonatomic,copy) void(^btnClick)(NSInteger);

//头部提示文字 @property (nonatomic,copy) NSString *proStr;

//头部提示文字的字体大小 @property (nonatomic,assign) NSInteger proFont;

//取消按钮的颜色 @property (nonatomic,strong) UIColor *cancelBtnColor;

//取消按钮的字体大小 @property (nonatomic,assign) NSInteger cancelBtnFont;

//除了取消按钮其他按钮的颜色 @property (nonatomic,strong) UIColor *otherBtnColor;

//除了取消按钮其他按钮的字体大小 @property (nonatomic,assign) NSInteger otherBtnFont;

zpactionsheet's People

Contributors

geekzp avatar

Watchers

James Cloos 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.