ipod

Receiving Notifications with App in background mode

跟風遠走 提交于 2019-11-29 06:27:26
I have an app, that will keep track of everything the user do in the iPod app. To do this, I added few observers to NSNotificationCenter, like MPMusicPlayerControllerNowPlayingItemDidChangeNotification. But my problem is, I only get those notifications when my app is in the foreground, if its in the background, the system add the notification to a queue, and then the next time my app becomes active it delivers it to me. I have no interest in this queue, since I want to receive real-time notifications. Is there any way for me to get those notifications even if my app is in suspended state? I

iOS App testing: No Code signature found

心不动则不痛 提交于 2019-11-28 22:54:29
I do not have iPhone developer account. I want to test my app on my iPod Touch. iPod iOS version : 5.1 (9B176 build) Xcode Development SDK : 5.1 Simulators : iPhone 5.1 Retina/normal iPad 5.1 Retina/Normal To bypass code signing etc, I changed changed the project settings like below. Code signing identity Don't code sign Debug Don't code sign Any iOS SDK Don't code sign Release Don't code sign Any iOS SDK Don't code sign I connected my iPod-Touch to my MacBook Pro, selected iPod as my target (instead simulator), built the project and ran it. Then I am getting the error "No Code Signature found

iPod touch for iPhone development

僤鯓⒐⒋嵵緔 提交于 2019-11-28 18:47:57
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 apps) ? On developer.apple.com I can sign up for selling my Applications on the AppStore for 99$. Do I

MPMediaItem and iTunes Match

荒凉一梦 提交于 2019-11-28 16:29:15
问题 I have an app that uses the iPod Library API to access the song database in iOS. With the release of iTunes Match, any song which is not on the device will fail to load. Is there a way I an request that the song be downloaded? Perhaps using the new iCloud API? Edit: To be clear I am not asking how to download songs with iTunes Match using the iPhone. The iOS SDK allows access to the iPod Library via the MPMediaQuery/MPMediaItems. On a iOS device with iTunes Match enabled songs which are in

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

柔情痞子 提交于 2019-11-28 11:16:10
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. 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 opengles-2 capability, because all iOS devices with the post-iPhone 3G S faster hardware support OpenGL ES 2

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

本秂侑毒 提交于 2019-11-28 10:18:00
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 iOS devices do not have a mount point because the computer does not treat them as data drives. Instead, data is sent

Newbie wants to create a PDF reader for ipod touch - what's the best approach?

若如初见. 提交于 2019-11-28 09:28:18
I want to make a small app that displays a PDF, presenting zoom-able single pages with a previous-next page function. The Core Graphics API is pretty much the same in Cocoa and Cocoa touch. Read up on CGPDFDocument , it should provide you with everything you will need to render PDF pages. You won't need to read the PDF spec or use a library to parse PDF files directly. You will probably to learn more about Core Graphics / Quartz 2D / etc. to understand how to use those functions inside of a Cocoa app. Based on the gradually evolving Apple policy of rejecting application submissions that

Error using Pod Install command on Podfile in Terminal

柔情痞子 提交于 2019-11-28 07:15:17
I have installed Cocoapods, and created a Podfile using Atom containing the following lines: pod ‘Parse’, ‘~> 1.7.1′ pod ‘ParseUI’, ‘~> 1.1.3′ Upon placing this file into my Xcode Project Root Directory, and running 'pod install' in Terminal. The following is shown: [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.38.2/lib/cocoapods-core/standard_error.rb:87:in `message': incompatible

Deploy and test application on device

霸气de小男生 提交于 2019-11-28 05:46:40
问题 How do I run my XCode project on my iPod touch? I am a developer, my iPod runs iOS 5.0.1, but I can not figure out how to do this. 回答1: You need an iOS Developer License (99$/year) and then, you need to follow these steps 1) Deploying iphone apps real devices OR 2) Testing Apps on the Devices 回答2: Now, you can test apps on real device without enrolling into Apple's $99 developer program . You only need to have free apple ID . Refer Apple Docs - Free On-Device Development. 来源: https:/

How to programmatically detect earpiece in iphone?

浪尽此生 提交于 2019-11-28 04:34:52
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 device. So is there any way to programatically detect if the earpiece has been unplug so that i can resume