如何让用户发布他/她的高分? [英] How do I allow the user to tweet his/her high score?

查看:114
本文介绍了如何让用户发布他/她的高分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过一些关于从iOS应用发推文的教程,但他们只展示推特图片或网址。到目前为止,我所拥有的只是

I have watched a few tutorials on tweeting from an iOS app but they only show tweeting images or urls. So far all I have is

-(IBAction)ShareTW {
    if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]){
        slComposeViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
        [slComposeViewController addImage:[UIImage imageNamed:@""]];
        
    }
}





而不是添加图像如何将其变成字符串沿着嘿家伙查看我在应用程序上的新高分!我得分%i,HighScore?我试图输入NSString而不是addImage,但这不是一个选项,我不确定是否需要slComposeViewController,我只能假设它是因为我没有找到关于这个主题的任何内容。



instead of adding the image how can I make it into a string along the lines of "Hey guys check out my new high score on the app! I score a %i", HighScore? I tried to type in NSString instead of addImage, but that's not an option and I am not sure if slComposeViewController is needed, I can only assume it is because I have not found anything on this topic.

推荐答案

这篇关于如何让用户发布他/她的高分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆