ツイートの作成には TWTweetComposeViewController を使用しています。
次に、この方法でツイートを手動で送信します: https://stackoverflow.com/a/14067278/440168
標準の "Tweet sent" サウンド通知を再生するにはどうすればよいですか?
ツイートの作成には TWTweetComposeViewController を使用しています。
次に、この方法でツイートを手動で送信します: https://stackoverflow.com/a/14067278/440168
標準の "Tweet sent" サウンド通知を再生するにはどうすればよいですか?
この音は非常に似ています:http ://soundjax.com/reddo/51828%5EWHISTLE.mp3
あなたはそれをこのようにプレイすることができます:
NSError *error;
NSString *path = [NSString stringWithFormat:@"%@/%@", NSBundle.mainBundle.resourcePath, @"whistle.mp3"];
NSUrl *url = [NSURL fileURLWithPath:path isDirectory:NO];
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:self.whistleUrl error:&error];
player.numberOfLoops = 0;
player.volume = 0.4;
if (player == nil) {
NSLog(@"%@", error.description);
return;
}
[player play];