系统分享
来源:互联网 发布:淘宝网天猫塑料凉鞋 编辑:程序博客网 时间:2024/04/28 14:20
import “ViewController.h”
import
(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ // 1.判断平台是否可用 if (![SLComposeViewController isAvailableForServiceType:SLServiceTypeSinaWeibo]) { NSLog(@"平台不可用,或者没有配置相关的帐号"); return; } // 2.创建分享的控制器 SLComposeViewController *composeVc = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeSinaWeibo]; // 2.1.添加分享的文字 [composeVc setInitialText:@"会计师法制科"]; // 2.2.添加一个图片 [composeVc addImage:[UIImage imageNamed:@"x阿达g"]]; // 2.3.添加一个分享的链接 [composeVc addURL:[NSURL URLWithString:@"www.it.com"]]; // 3.弹出分享控制器 [self presentViewController:composeVc animated:YES completion:nil]; // 4.监听用户点击了取消还是发送 composeVc.completionHandler = ^(SLComposeViewControllerResult result) { if (result == SLComposeViewControllerResultCancelled) { NSLog(@"点击了取消"); } else { NSLog(@"点击了发送"); } };}@end
0 0
- 系统分享
- 系统分享
- 系统分享
- iOS社会化分享-iOS系统分享,shareSDK分享,Umeng分享
- 系统设计经验分享
- 分享:问答系统
- 调用系统分享 Android
- Android系统分享
- cocos2d-x分享系统
- 调用系统分享功能
- Android-系统分享-1
- 系统的分享。
- iOSS系统分享
- Android调用系统分享
- 系统自带分享
- 分享一个赌博机系统
- Android系统分享
- android调用系统分享
- JAVA线程池
- 1.1 Spring概述
- iOS-CoreLocation实现定位当前城市
- (三)JavaMail 发送邮件之正文 && 附件
- _scrollView.delaysContentTouches = NO;
- 系统分享
- 老是糊涂 数据格式
- 数学之美 - 机器学习实战 书籍 数据挖掘。
- 把node应用部署到heroku
- 终止线程的方法
- 【leetcode】Array—— Plus One(66)
- 时间Date类(Calendar Date 字符串 相互转换 格式化)
- 回流和重绘
- Python爬虫(二):整站爬虫与Web挖掘