现在我的cocos2d-x版本是2.2.3。游戏需要分享,而且ios和android平台。在ios能用social.framework来进行分享。网上有资料多数是cocos2d版本,本人不懂oc,混编都折腾死我了。
网上找的oc版本的,我用这些代码但运行就崩了,原因’-: unrecognized selector sent to instance 0xc636790’,唉不懂ios就是蛋疼。
NSString *initialText;
if(!)
{
;
}else{
SLComposeViewController *composeViewController = ;
];
initialText = http://weibo.com/eseedo"];
;
AppController *app = (AppController*) delegate];
presentModalViewController:composeViewController animated:YES];
不知道大家能提供什么比较合适的资料。或者部分代码