- простые коды -
#endregion # порядок нечетных / четных чисел по деск
//declaration of integer
int TotalCount = 50;
int loop;
Console.WriteLine("\n---------Odd Numbers -------\n");
for (loop = TotalCount; loop >= 0; loop--)
{
if (loop % 2 == 0)
{
Console.WriteLine("Even numbers : #{0}", loop);
}
}
Console.WriteLine("\n---------Even Numbers -------\n");
for (loop = TotalCount; loop >= 0; loop--)
{
if (loop % 2 != 0)
{
Console.WriteLine("odd numbers : #{0}", loop);
}
}
Console.ReadLine ();
#endregion
Nothing public. There's probably an answer if you're willing to dive into private APIs, but this is strongly discouraged (as you will likely break future compatibility, and may get rejected from the app store).
Там есть Например, на веб-сайте iPhone Dev Center для воспроизведения кратковременных звуков (5 секунд или меньше). Вы можете использовать этот код для воспроизведения любого звука. Найдите звук щелчка, выполнив поиск в Google, и используйте его. Это все, что вам нужно.
AudioServicesCreateSystemSoundID (fileURL, soundID);
Я считаю, что звук щелчка, который вам нужен, есть в примере приложения под названием SysSound.
http://developer.apple.com/iphone/library/samplecode/SysSound/