Latest 0.0.2
Homepage https://github.com/qxuewei/XWPublish
License MIT
Platforms ios 6.0, requires ARC
Dependencies SDWebImage
Authors

iOS 10以后需要在info.plist文件中额外加相机系统权限

<key>NSPhotoLibraryUsageDescription</key>  
<string>系统使用您的相机权限</string>

发布状态

两行代码集成发布功能:


XWPublishController *publishVC = [[XWPublishController alloc] init];
[self presentViewController:publishVC animated:YES completion:nil];

效果图:
XWPublish

具体使用方法:

    *1.导入'XWPublish'文件夹到项目中
    *2.导入 ' #import "XWPublishController.h" '
    *3.在需要发布的按钮点击方法中
        *XWPublishController *publishVC = [[XWPublishController alloc] init];
        *[self presentViewController:publishVC animated:YES completion:nil];


*在XWPublishController.m中submitToServer方法中编写上传服务器的代码


*textfield或者textview中长按出现的(全选,复制,粘贴)显示成中文
如果在文本输入框中长按复制,粘贴为英文,可以在info.plist中添加Localized resources can be mixed,设置为YES.
来获取当前手机的语言

[ 我的博客 ]( http://blog.csdn.net/qxuewei )

Latest podspec

{
    "name": "XWPublish",
    "version": "0.0.2",
    "summary": "publish",
    "homepage": "https://github.com/qxuewei/XWPublish",
    "description": "It is a component for ios photo browser,written by Objective-C.",
    "license": "MIT",
    "authors": {
        "qiuxuewei": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/qxuewei/XWPublish.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Classes/XWPublish/*.{h,m,xib}",
        "Classes/XWPublish/images/*",
        "Classes/XWPublish/XWImagePicker/*.{h,m}",
        "Classes/XWPublish/XWImagePicker/Lib/CollectionViewInfo/*.{h,m}",
        "Classes/XWPublish/XWImagePicker/Lib/JJPhotoViewer/*.{h,m,png}",
        "Classes/XWPublish/XWImagePicker/Lib/MImgpicker/*.{h,m,xib}",
        "Classes/XWPublish/XWImagePicker/Lib/SDProgressView/Lib/*.{h,m}",
        "Classes/XWPublish/XWImagePicker/Lib/SDProgressView/View/*.{h,m}"
    ],
    "dependencies": {
        "SDWebImage": [
            "~> 3.7.1"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This