Skip to content

Commit cfcb0de

Browse files
author
itjhDev
committed
完成:1.调整第三方登录页面 2.集成qq登录 3.修改第三方登录方法
完成:1.调整第三方登录页面 2.集成qq登录 3.修改第三方登录方法
1 parent 6b6e061 commit cfcb0de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6024
-253
lines changed

itjh_ios.xcodeproj/project.pbxproj

+284-157
Large diffs are not rendered by default.

itjh_ios/AppDelegate.swift

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import UIKit
1010
import CoreData
1111

12+
1213
@UIApplicationMain
1314
class AppDelegate: UIResponder, UIApplicationDelegate {
1415

@@ -23,6 +24,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2324
UMSocialData.setAppKey("54238dc5fd98c501b5028d70")
2425
UMSocialSinaHandler.openSSOWithRedirectURL("http://sns.whalecloud.com/sina2/callback")
2526

27+
UMSocialQQHandler.setQQWithAppId("1103695854", appKey: "Qx34CKDOmDxksgT9", url: "http://www.umeng.com/social")
28+
29+
//友盟统计
30+
31+
32+
2633
UINavigationBar.appearance().barTintColor = UIColor(red: 40/255.0, green: 132/255.0, blue: 200/255.0, alpha: 1)
2734
//UINavigationBar.appearance().barTintColor = UIColorFromRGB(0x028fd6)
2835
UINavigationBar.appearance().tintColor = UIColor.whiteColor()

itjh_ios/ArticlesShowViewController.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,22 @@ class ArticlesShowViewController: UIViewController,UIScrollViewDelegate {
9999
// 分享方法
100100
func shareClick(barItme:UIBarButtonItem){
101101
println("点击了分享")
102+
103+
104+
105+
102106
var saimg = UIImage(data: NSData(contentsOfURL: NSURL(string: aimg)!)!)
103107
UMSocialData.defaultData().extConfig.title = atitle
104108

105109
UMSocialWechatHandler.setWXAppId("wxf17bc88ea6076de8", appSecret: "50f8da2f5a4756526b4a0b6574e2650a", url: shareUrl + "\(artID).html")
106110

107-
let snsArray = [UMShareToSina,UMShareToWechatSession,UMShareToWechatTimeline,UMShareToFacebook,UMShareToTwitter,UMShareToEmail]
111+
UMSocialDataService.defaultDataService().requestAddFollow(UMShareToSina, followedUsid:
112+
["2937537505"], completion: nil)
113+
114+
let snsArray = [UMShareToSina,UMShareToWechatSession,UMShareToQQ,UMShareToQzone,UMShareToWechatTimeline,UMShareToFacebook,UMShareToTwitter,UMShareToEmail]
108115

109116

110-
UMSocialSnsService .presentSnsIconSheetView(self, appKey: "54238dc5fd98c501b5028d70", shareText:atitle+" "+shareUrl + "\(artID).html", shareImage: saimg, shareToSnsNames: snsArray, delegate: nil)
117+
UMSocialSnsService.presentSnsIconSheetView(self, appKey: "54238dc5fd98c501b5028d70", shareText:atitle+" "+shareUrl + "\(artID).html", shareImage: saimg, shareToSnsNames: snsArray, delegate: nil)
111118

112119

113120
}

itjh_ios/Info.plist

+18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleDisplayName</key>
6+
<string>IT江湖V1.2</string>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleExecutable</key>
@@ -36,6 +38,22 @@
3638
<string>sina.54238dc5fd98c501b5028d70</string>
3739
</array>
3840
</dict>
41+
<dict>
42+
<key>CFBundleTypeRole</key>
43+
<string>Editor</string>
44+
<key>CFBundleURLSchemes</key>
45+
<array>
46+
<string>QQ41C90FEE</string>
47+
</array>
48+
</dict>
49+
<dict>
50+
<key>CFBundleTypeRole</key>
51+
<string>Editor</string>
52+
<key>CFBundleURLSchemes</key>
53+
<array>
54+
<string>tencent1103695854</string>
55+
</array>
56+
</dict>
3957
</array>
4058
<key>CFBundleVersion</key>
4159
<string>1</string>

itjh_ios/UMSocial_Sdk_4.2.1/UMSocial_Sdk_Extra_Frameworks/Whatsapp/UMSocialWhatsappHandler.h

-20
This file was deleted.

0 commit comments

Comments
 (0)