发微博,发布状态,发布动态封装类,一行代码即可调用.

https://github.com/qxuewei/XWPublish

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

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

发布状态

两行代码集成发布功能:


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

效果图: 

具体使用方法:

    *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. 来获取当前手机的语言

我的博客

猜你喜欢

转载自blog.csdn.net/klkxxy/article/details/85055300