Latest 0.1.6
Homepage https://github.com/wang68543/WQBasicComponents
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Authors
添加一个合作者

根据自己平常使用频率比较高的一些控件以及工具的封装,收集起来方便自己以后的方便使用

支持CocoaPods

pod 'WQBasicComponents','~> '0.1.6'

提示:

由于库里面包含音频转换的资源包所以更新的时候需要的时间比较长。

1. 录音

self.manger = [WQVoiceRecordManager manager];
[self.manger recordWithPathExtension:@"wav"];

2.播放

//下载的是amr格式的语音需要转换为wav格式
[[WQVoicePlayManager manager].downloader setConvertVoiceStyle:WQConvertBase64AmrToWav];
[[WQVoicePlayManager manager] play:@"http://123.56.148.205/upload/audio/865555555555553/2/aud_58aeba23f30b9.txt" playFinsh:^(NSError *error, NSString *urlStr, BOOL finshed) {
    }];

3.五星评分

支持任意大小的五角星形状,也支持使用图片

 WQStarLevel *starLevel = [[WQStarLevel alloc] init];
[starLevel addTarget:self action:@selector(satrValueChanged:) forControlEvents:UIControlEventValueChanged];
starLevel.half = YES;
[self.StarContentView addSubview:starLevel];
starLevel.backgroundColor = [UIColor whiteColor];
starLevel.starHeight = 40;

4.标题与图片位置任意方向排列的按钮

支持本身的自带布局属性


WQEdgeTitleButton *edgeTitle = [self commonContentTitle];
edgeTitle.titleAliment = ButtonTitleAlimentTop;
edgeTitle.contentVerticalAlignment = UIControlContentVerticalAlignmentTop;
edgeTitle.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
edgeTitle.frame = CGRectMake(20, 300, 280 , 120);

Latest podspec

{
    "name": "WQBasicComponents",
    "version": "0.1.6",
    "summary": "u57fau7840u7ec4u4ef6(u4e0du6d89u53caUIu90e8u5206)",
    "description": "u5e73u5e38u6536u96c6u7684u4e00u4e9bu5e38u7528u7684u5de5u5177u4ee5u53cau5206u7c7b",
    "homepage": "https://github.com/wang68543/WQBasicComponents",
    "license": "MIT",
    "authors": {
        "u738bu5f3a": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wang68543/WQBasicComponents.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "prefix_header_contents": [
        "#import ",
        "#import "
    ],
    "source_files": "WQBasicComponents/WQBasicComponents.h",
    "dependencies": {
        "AFNetworking": []
    },
    "subspecs": [
        {
            "name": "WQPublicHelp",
            "subspecs": [
                {
                    "name": "WQBasicHelp",
                    "source_files": "WQBasicComponents/WQPublicHelp/WQBasicHelp/*.{h,m}"
                }
            ]
        },
        {
            "name": "Category",
            "subspecs": [
                {
                    "name": "Category_String",
                    "source_files": "WQBasicComponents/Category/Category_String/*.{h,m}"
                },
                {
                    "name": "Category_Vendor",
                    "source_files": "WQBasicComponents/Category/Category_Vendor/*.{h,m}"
                },
                {
                    "name": "Category_Foundation",
                    "source_files": "WQBasicComponents/Category/Category_Foundation/*.{h,m}"
                },
                {
                    "name": "Category_Date",
                    "dependencies": {
                        "WQBasicComponents/Category/Category_Vendor": []
                    },
                    "source_files": "WQBasicComponents/Category/Category_Date/*.{h,m}"
                }
            ]
        },
        {
            "name": "Tool",
            "subspecs": [
                {
                    "name": "BasicFoundation",
                    "source_files": "WQBasicComponents/Tool/BasicFoundation/*.{h,m}"
                },
                {
                    "name": "BasicHelp",
                    "dependencies": {
                        "WQBasicComponents/Category/Category_Foundation": []
                    },
                    "source_files": "WQBasicComponents/Tool/BasicHelp/*.{h,m}"
                },
                {
                    "name": "NetWorkTool",
                    "dependencies": {
                        "WQBasicComponents/Tool/BasicHelp": []
                    },
                    "source_files": "WQBasicComponents/Tool/NetWorkTool/*.{h,m}"
                }
            ]
        }
    ]
}

Pin It on Pinterest

Share This