Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
59aef7fb
Commit
59aef7fb
authored
May 27, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
e23d89d0
6a487e30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
37 deletions
+28
-37
ShareViewController.m
Lighting/Class/ShareViewController.m
+22
-31
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+6
-6
No files found.
Lighting/Class/ShareViewController.m
View file @
59aef7fb
...
...
@@ -61,44 +61,35 @@
}
switch
(
sender
.
tag
)
{
case
101
:
{
//默认分享样式
[
UMSocialData
defaultData
].
extConfig
.
wechatSessionData
.
title
=
@"标题"
;
// 微信title
[
UMSocialData
defaultData
].
extConfig
.
wechatTimelineData
.
title
=
@"标题"
;
// 微信朋友圈title
[
UMSocialData
defaultData
].
extConfig
.
qqData
.
title
=
@"标题"
;
// QQ分享title
[
UMSocialData
defaultData
].
extConfig
.
qzoneData
.
title
=
@"标题"
;
// Qzone分享title
//注意: 1. 支持分享编辑页和授权页面横屏,必须要在出现列表页面前设置:
[
UMSocialConfig
setSupportedInterfaceOrientations
:
UIInterfaceOrientationMaskLandscape
];
// 显示分享界面
[
UMSocialSnsService
presentSnsIconSheetView
:
self
appKey
:
@"57425f2467e58e645f00210a"
shareText
:
@"友盟社会化分享让您快速实现分享等社会化功能,http://umeng.com/social"
shareImage
:
[
UIImage
imageNamed
:
@"icon"
]
shareToSnsNames
:
@[
UMShareToWechatSession
,
UMShareToWechatTimeline
,
UMShareToQQ
,
UMShareToQzone
]
delegate
:
self
];
}
case
101
:
//微信好友
{
//自定义样式
//使用UMShareToWechatSession,UMShareToWechatTimeline,UMShareToWechatFavorite分别代表微信好友、微信朋友圈、微信收藏
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatSession
]
content
:
@"分享内嵌文字"
image
:
nil
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
NSLog
(
@"分享成功!"
);
}
}];
}
break
;
case
102
:
case
102
:
//微信朋友圈
{
[
UMSocialData
defaultData
].
extConfig
.
title
=
@"分享的title"
;
[
UMSocialData
defaultData
].
extConfig
.
qqData
.
url
=
@"http://baidu.com"
;
[
UMSocialSnsService
presentSnsIconSheetView
:
self
appKey
:
@"57425f2467e58e645f00210a"
shareText
:
@"友盟社会化分享让您快速实现分享等社会化功能,http://umeng.com/social"
shareImage
:
[
UIImage
imageNamed
:
@"icon"
]
shareToSnsNames
:
@[
UMShareToWechatSession
,
UMShareToWechatTimeline
,
UMShareToQQ
,
UMShareToQzone
]
delegate
:
self
];
//使用UMShareToWechatSession,UMShareToWechatTimeline,UMShareToWechatFavorite分别代表微信好友、微信朋友圈、微信收藏
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToWechatTimeline
]
content
:
@"分享内嵌文字"
image
:
nil
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
NSLog
(
@"分享成功!"
);
}
}];
}
break
;
case
103
:
case
103
:
//新浪微博
{
// 自定义分享样式
//需要自定义面板样式的开发者需要自己绘制UI,在对应的分享按钮中调用此接口
//使用UMShareToWechatSession,UMShareToWechatTimeline,UMShareToWechatFavorite分别代表微信好友、微信朋友圈、微信收藏
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToSina
]
content
:
@"分享内嵌文字"
image
:
nil
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
response
){
if
(
response
.
responseCode
==
UMSResponseCodeSuccess
)
{
NSLog
(
@"分享成功!"
);
}
}];
}
[[
UMSocialDataService
defaultDataService
]
postSNSWithTypes
:@[
UMShareToSina
]
content
:
@"分享内嵌文字"
image
:
nil
location
:
nil
urlResource
:
nil
presentedController
:
self
completion
:^
(
UMSocialResponseEntity
*
shareResponse
){
if
(
shareResponse
.
responseCode
==
UMSResponseCodeSuccess
)
{
NSLog
(
@"分享成功!"
);
}
}];
}
break
;
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
59aef7fb
...
...
@@ -1667,8 +1667,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Developer:
云霄 曹 (WM8ZU7YY98
)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer:
云霄 曹 (WM8ZU7YY98
)"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer:
超级 朱 (SXSQ6S5D55
)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer:
超级 朱 (SXSQ6S5D55
)"
;
COMPRESS_PNG_FILES
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
"$(inherited)"
;
...
...
@@ -1710,7 +1710,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
d25ba75f-c4da-4bef-b966-3a998dcbffbe
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
@@ -1723,8 +1723,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
""
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
""
;
CODE_SIGN_IDENTITY
=
"
iPhone Developer: 超级 朱 (SXSQ6S5D55)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"
iPhone Developer: 超级 朱 (SXSQ6S5D55)
"
;
COMPRESS_PNG_FILES
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
"$(inherited)"
;
...
...
@@ -1766,7 +1766,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
d25ba75f-c4da-4bef-b966-3a998dcbffbe
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment