Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
目前支持新浪微博,腾讯微博,豆瓣说,发推,网易微博,认证方式使用的oauth。
Branch: master
Pull request Compare This branch is even with Aldridge1:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
WBShareKit
.DS_Store
.gitignore
README.md

README.md

1.WBShareKey.h中修改配置信息

2.app delegate中添加

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
    [[WBShareKit mainShare] handleOpenURL:url];   
    return YES;
}

- (void)sinaSuccess:(NSData *)_data
{
    NSLog(@"sina ok:%@",_data);
}

- (void)sinaError:(NSError *)_error
{
    NSLog(@"sina error:%@",_error);
}

//[[WBShareKit mainShare] startSinaOauthWithSelector:@selector(sinaSuccess:) withFailedSelector:@selector(sinaError:)];
//如上认证代码添加的@selector也将会在此调用

3.在info.plist中修改url types

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>minroad.com</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>oauth</string>
        </array>
    </dict>
</array>
</plist>

4.具体调用请查看WBShareKitViewController.m

更多信息

http://www.chlova.com

http://www.minroad.com

Something went wrong with that request. Please try again.