如何以度/弧度转换纬度和经度?你们有任何公式或任何想法吗?我想在MapKit上显示它.谢谢.....
我想创建Custom UISwitch按钮,我该怎么办?
我应该NSBundle在下面的代码中发布吗?NSURL还应该发布还是不发布?我很迷惑.
NSBundle *mainBundle = [NSBundle mainBundle];
NSError *error;
NSURL *audioURL = [NSURL fileURLWithPath:[mainBundle pathForResource:@"count_in" ofType: @"mp3"]];
AVAudioPlayer *player1 = [(AVAudioPlayer*) [AVAudioPlayer alloc] initWithContentsOfURL:audioURL error:&error];
self.player = player1;
[self.player play];
[player1 release];
Run Code Online (Sandbox Code Playgroud)