私はゲームを持っていて、ユーザーはそこでスコアをTwitterに送信できます。問題は、現在、実際のスコアの代わりに、好きなものを入力できることです。TextFieldを編集不可にすると、スコアを変更できなくなります。
誰もがこれに対する解決策を知っていますか?
コードの抜粋は次のとおりです(明らかにTwitterフレームワークも適用されます)。
-(IBAction)twitter {
float currentTime = [seconds.text floatValue];
float newTime = currentTime;
NSString *twitter = [NSString stringWithFormat:@"I finished level 2 of #TextOff in %.2f seconds! Think you can beat my score? Download it in the App Store now!", newTime];
TWTweetComposeViewController *tweet = [[TWTweetComposeViewController alloc] init];
[tweet setInitialText:twitter];
//am i able to get ride of the textfield here?????
[self presentModalViewController:tweet animated:YES];
}