ipod

iPod touch for iPhone development

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 20:27:09
问题 I am thinking about buying an iPod touch to make some money on developing apps for the iPhone. I like the concept of the App Store and had a quick look at it with iTunes. Looks like applications are categorized, to be iPhone OR iPod applications. Some apps which are free for the iPod seem to cost for iPhone users. What is the difference of both platforms, or why is the App Store separating them ? Does it make sense to develop for the iPhone using an iPod touch (beside phone/location related

How To Access Camera & Camera Roll Objective-C [closed]

浪子不回头ぞ 提交于 2019-11-27 20:20:25
I am making a Universal iOS Application which needs to access the camera and the camera roll. How would i go about this? I have no code to show yet because the app is mainly based around this. This answer relevant on physical device ONLY! Access Camera: - (void)takePhoto { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [self presentViewController:picker animated:YES completion:NULL]; } Access Camera Roll: - (void)selectPhoto { UIImagePickerController

What's needed to use the Apple Accessory Protocol?

雨燕双飞 提交于 2019-11-27 18:52:14
I'm in the process of planning out a personal project that will be a media player and one of the things I would like to do is be able to dock my iPod touch (or any iPod or iPhone) and control it and play music off it like the speaker docs do that you can buy. I found some information while searching around online for this but my question is can I make up a cable and use the serial protocol from any device or does Apple have this locked down so only certified/approved devices can communicate this way? jkatzer If you are looking to do this for yourself, I would recommend jailbreaking and the

Extract iPod Library raw PCM samples and play with sound effects

北城以北 提交于 2019-11-27 18:03:25
I am trying to extract raw PCM samples from an MP3 in the iPod Library so that I can play the song and manipulate the pitch, tempo, and apply sound effects (such as filters). I have already gone down the route of AVPlayer and AVAudioPlayer which both do not allow very much control over the playback at all. The code below is as far as I have gotten with this. I am at a point now where I do not know what to do with the CMSampleBufferRef's in my while loop because I do not know which framework to use in order to playback the audio and apply such effects. Any idea what would be the best approach

On iPhone: Find out what song is currently playing? (in the iPod music player) [duplicate]

最后都变了- 提交于 2019-11-27 18:03:20
This question already has an answer here: iPhone sdk - accessing current song information through an app 2 answers Apple released access to the iPod Library in the iPhone SDK 3.0 and I'm wondering if it's now possible to understand which song is currently playing? Title, Artist, Album suffices. Example: User opens an app and the app can know which song is playing in the background. Has anyone had any experience with this? Thanks a bunch! MPMediaItem * song = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem]; NSString * title = [song valueForProperty:MPMediaItemPropertyTitle]; NSString

AVPlayer Video SeekToTime

家住魔仙堡 提交于 2019-11-27 13:26:41
问题 I'm using AVPlayer for play my video using slider and Some Buttons. Here is my methods for moving forward and backward using buttons. -(IBAction)MoveForward { //int value = timeSlider.value*36000 + 10; //CMTime newTime = CMTimeMakeWithSeconds(value, playspeed); //CMTime newTime = CMTimeMake(value,(playspeed*timeSlider.maximumValue)); CMTime newTime = CMTimeMakeWithSeconds(timeSlider.value, playspeed); newTime.value += 60; [player seekToTime: newTime]; } -(IBAction)MoveBackward { CMTime

How to play a song from the itunes library in iphone

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 06:50:55
Hi i need to play a song from the itunes library. I had gone through the Apples ipod Library Access Guide and got the code. MPMediaQuery *everything = [[MPMediaQuery alloc] init]; NSLog(@"Logging items from a generic query..."); NSArray *itemsFromGenericQuery = [everything items]; MPMediaItem *song; for (song in itemsFromGenericQuery) { NSString *songTitle = [song valueForProperty: MPMediaItemPropertyTitle]; NSLog (@"%@", songTitle); } //assign a playback queue containing all media items on the device [myPlayer setQueueWithQuery:everything];//setQueueWithQuery:everything]; //start playing from

How do I make my application available on the App Store only for iPhone 3G S or faster devices?

给你一囗甜甜゛ 提交于 2019-11-27 06:09:58
问题 I have an app that runs slowly on an iPhone 3G but is fast enough on an iPhone 3G S. Is there a way to limit the app to be available only for iPhone 3G S and faster devices? I would like to avoid bad comments because 3G or even 2G users download it and then complain about it being too slow. 回答1: You can set minimum capabilities required to use your application by providing values for the UIRequiredDeviceCapabilities key in your application's Info.plist. In this case, I'd recommend using the

Where is the mount point for the iPod/iPhone in Mac?

北慕城南 提交于 2019-11-27 03:37:52
问题 I'm thinking of improving my programming skills by making a music player to sync with an iPod/iPhone but there's no point in even starting if I can't even access the device! I've spent all day googling but can't seem to find what I'm looking for. I don't want to ssh to the iPod or Jailbreak it etc. I'm either looking for a way to access it myself or using what I assume would be a simple script. I know it's possible because you can use things like 'iPhone Explorer'.. Thanks :-D 回答1: iOS

How to programmatically detect earpiece in iphone?

谁说我不能喝 提交于 2019-11-27 00:31:03
问题 I'm currently working on a project that involves playing music from the iphone music library within the app inside. I'm using MPMediaPickerController to allow the user to select their music and play it using the iPod music player within the iPhone. However, i ran into problem when the user insert his earpiece and removes it. The music will suddenly stop playing for no reason. After some testing, i found out that the iPod player will pause playing when the user unplug his earpiece from the