首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

ios初学者之路:新浪微博分享 sso与webAuth的转换

2012-12-15 
ios菜鸟之路:新浪微博分享 sso与webAuth的转换使用最新的新浪微博sdk进行开发时,如果iphone手机是6.0以上

ios菜鸟之路:新浪微博分享 sso与webAuth的转换

使用最新的新浪微博sdk进行开发时,如果iphone手机是6.0以上的系统时,可以直接调用sso新浪微博客户端。只需要在appdelegate中添加下边四个方法即可


- (void)applicationDidBecomeActive:(UIApplication *)application
{
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    
    [self.sinaweibo 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 handleOpenURL:url];
}
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
    
    return  [self.sinaweibo handleOpenURL:url];
    
}

热点排行