ipod-touch

Proper method to detect device model (iPhone/iPod Touch)?

Is this the proper way to detect which device a user is running? NSString *currentModel = [[UIDevice currentDevice] model]; if ([currentModel isEqualToString:@"iPhone"]) { // The user is running on iPhone so allow Call, Camera, etc. } else { // The user is running on a different device (iPod / iPad / iPhone Simulator) disallow C...

security policy error iphone ipod touch issue

I'm getting an "Error from Debugger: Error launching remote program: security policy error" when I try to run my app on my ipod touch. The provisions look in order, and the app builds to my iphone 3gs just fine. The app used to build just fine to my ipod touch, so I'm flustered what could have changed and wondering if anyone has any th...

How to add button to follow application owner's Twitter account from iphone application?

Hi, all! I'm developing an application in which I need to include an option "Share on Twitter " click upon which the application's itunes address is automatically twitted to the user's Twitter account(ofcourse I'm accepting user's id and password). I was able to do that. Now I want to add a button "Follow" click upon which will...

Bypass system sound setting objective c

Hi. I have an app that Is supposed to play a AudioServicesPlayAlertSound(); but I've noticed on the iPod touch 1G, the sound will only play if the system sound setting is set to speaker or both. Is there a way to bypass this setting, because I know it works when the setting is not set to headphones. Also, if it is not possible, is there ...

How to prevent Ipod Touch Application from going to sleep

I am building an application for the ipod touch that needs to run for several time (like an alarm clock). I would like to prevent the ipod touch from going to sleep unless the use manually exit the application. Is this possible with the current SDK? ...

Play Video on Mobile Safari for iPod touch

I have a web site that opens iframe for video on page, page uses ajax to pull in videos from selected menu. As expected and understood, on iPod touch after selecting video it shows a play button, which brings up video in another screen. However, when the video completes, it returns browser to page prior to one where video was played from...

What should I grab as a development platform, an iPod or an iPad?

Hey all, I've recently gotten into the world of contract programming, and two of my clients have indicated that they'd like to do something 'trendy', like ipod touch/iphone/ipad development. I have a mac laptop (first gen macbook pro) that I'll have to upgrade to snow leopard to do the development for any of them, from what I've read. ...

Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone?

We have an offline Safari application with UI designed for vertical use (pixel perfect). We would like the UI to stay vertical no matter what how the user rotates the ipod / iphone. Is it possible with offline Safari application? This question is exactly the same as http://stackoverflow.com/questions/938462/can-i-prevent-mobile-safari-f...

Is there an equivalent apple-touch-startup-image for the IPAD?

For web apps you can set the startup screen with apple-touch-startup-image What about for iPads? ...

How To Parse A Website?

Hey I would like to build an app that could parse a website in order to get specific information. Specifically something that can parse http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=681780934297262 for the important information. Is there a tutorial out there I could use. ...

iPhone/iPad. How do I launch an app from link in Safari?

I have an app that I want to be launchable either explicitly when tapped or when a parameterized URL is clicked on on a webpage in Safari running on iPad or iPhone. Can someone sketch the approach for me and/or point me to the relevant docs? Thanks so much. Cheers, Doug ...

Coverflow in HTML5 for iPhone/iPod Touch

Hi, I have to do a web page destined for iPhone and iPod-touch that needs to incorporate the Coverflow style of apple in a page to display a list of videos. I've heard something about gizmos that could help, but I can't find anything relevant or that could work properly with the iPhone/iPod-Touch navigation. Anyone knows something t...

Why doesn't Apple make private APIs inaccessible?

If Apple doesn't want developers using private APIs in the iPhone SDK, why don't they do something like mark the classes and/or methods with whatever the Objective-C equivalent of C#'s "internal" keyword? If the APIs are spread amongst multiple binaries, Apple could refactor them into dedicated private-API-only binaries to make this eas...

Is there any physics engine SDK for iPhone/iPod touch and iPad?

Is there any physics engine SDK for iPhone/iPod touch and iPad? ...

Set Autolock programatically

hi friends, I want to set auto lock my iphone/ipad/ipod screen programaticaly after some time delay. Can any one tell me how to do the same? if any one is having any suggestion please let me know. thanks in advance. ...

Why is my UITableView not being set?

I checked using the debbuger in the viewDidLoad method and tracerTableView is 0x0 which i assume means it is nil. I don't understand. I should go ahaed say yes I have already checked my nib file and yes all the connections are correct. Here is the header file and the begging of the .m. ///////////// .h file //////////// @interface T...

Which Ipod touch generation should I buy? 2nd or 3rd?

I want to create games for Iphone/Ipod touch. Unfortunately I don't have a lot of money so I can buy only one device. Ipod is cheaper than Iphone, so I decided to bought Ipod touch. But I am afraid of buying 3rd generation - because it has more memory, more faster CPU, etc. And I think if I post my app on appstore - people with 2nd gener...

iPhone write to file (alternative directory)

New to iPhone 3.2, Apple introduced File-Sharing support. Details can be found at https://developer.apple.com/iphone/library/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS3_2.html#//apple_ref/doc/uid/TP40009337-SW1 . Now, most examples floating around in the web demonstrates writing to the documents directory. What if I wan...

For the iPhone, can you program for different languages?

For the iPhone, is it possible to program applications to translate words from a base language to any of several languages of various users. If so, how? ...

how to parse using json

how do parse this data string using json parser {"product": ["collection1", "collection2"]} ...