When using the latest Sina Weibo sdk for development, if the iphone is more than 6.0 of the system, you can directly call the sso Sina Weibo client. You only need to add the following four methods to appdelegate.
-(Void) applicationDidBecomeActive :( UIApplication *) application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previusly in the background, optionally refresh the user interface.
[Self. sinaweibo o applicationDidBecomeActive];
}
-(Void) applicationWillTerminate :( UIApplication *) application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground :.
}
-(BOOL) application :( UIApplication *) application handleOpenURL :( NSURL *) url {
Return [self. sinaweibo o handleOpenURL: url];
}
-(BOOL) application :( UIApplication *) application openURL :( NSURL *) url sourceApplication :( NSString *) sourceApplication annotation :( id) annotation {
Return [self. sinaweibo o handleOpenURL: url];
}