Latest 2.0.1
Homepage https://github.com/tpctt/SuggestInputView
License MIT
Platforms ios 8.0, requires ARC
Dependencies ZLPhotoBrowser
Frameworks Foundation, UIKit
Authors

SuggestInputView 常见的意见反馈部分的代码封装,支持图片和文本输入

/**
获取意见反馈的数据

@param text 文本内容
@param imagesArray 图片数组
*/
typedef void(^SuggestInputBlock)(NSString *text , NSArray <UIImage *> * imagesArray );

@interface SuggestInputView : UIView
@property(assign,nonatomic) NSInteger maxPic;

@property(strong,nonatomic) UIImage *cameraBgIcon;

-(void)getSugeestInfo:(SuggestInputBlock)block;

@end

SuggestInputView
SuggestInputView

也支持独立 图片选择部分出来

///点击图片
typedef void (^SuggestImageTapImageBlock)(NSIndexPath *path , UIImage *image,UIButton *imageBtn);
///设置图片
typedef UIImage *(^SuggestImageSetImageBlock)(NSIndexPath *path ,UIButton *imageBtn );

@interface SuggestImageSelectView : UIView

@property (strong,nonatomic) UICollectionView *collectView;
@property(strong,nonatomic) UIImage *cameraBgIcon;
@property(strong,nonatomic) UIImage *delBtnImage;

///item 的间距
@property(assign,nonatomic) CGFloat itemSpace;

@property(assign,nonatomic) NSInteger maxPic;
@property(assign,nonatomic) NSInteger numberOfRow;

@property(copy,nonatomic) SuggestImageTapImageBlock tapImageBlock;
@property(copy,nonatomic) SuggestImageSetImageBlock setImageBlock;
@property (strong,nonatomic) NSMutableArray *currectImageArray;

-(void)addImages:(NSArray*)images;
-(void)deleteImageAtIndex:(NSInteger)index;

-(NSArray *)getImages;
-(CGSize)getItemSize;
-(CGFloat)getCollectViewFitSize;

@end

Latest podspec

{
    "name": "SuggestInputView",
    "version": "2.0.1",
    "summary": "SuggestInputView u5e38u89c1u7684u610fu89c1u53cdu9988u90e8u5206u7684u4ee3u7801u5c01u88c5,u652fu6301u56feu7247u548cu6587u672cu8f93u5165",
    "homepage": "https://github.com/tpctt/SuggestInputView",
    "social_media_url": "https://github.com/tpctt/SuggestInputView",
    "platforms": {
        "ios": "8.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        " tim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tpctt/SuggestInputView.git",
        "tag": "2.0.1"
    },
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "ZLPhotoBrowser": []
    },
    "source_files": "Classess/**/*.{h,m,mm}",
    "resources": "resource/*.bundle"
}

Pin It on Pinterest

Share This