ios

How do I detect when the iPhone goes into landscape mode via JavaScript? Is there an event for this?

I’m writing a web site targeted at the iPhone. I’d like to set a class on the <body> element when the iPhone’s orientation changes (i.e. when the user turns the phone into landscape and/or portait mode). Can I detect this change via JavaScript? Is there an event for this? ...

Low recording volume in combination with AVAudioSessionCategoryPlayAndRecord.

When I set: [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayAndRecord error:NULL]; …recording and playing works fine, just the playback volume is around 60% lower than when I would just play the same sound without recording and settings PlayAndRecord. I need to get high volume peaks (to check if a user blo...

There is no SDK with the name or path 'iphoneos2.0'

Hi I have spent endless hours trying to solve this but with no luck, please help! I keep getting this error. There is no SDK with the name or path 'iphoneos2.0' I am running some templates at http://appsamuck.com/day1.html Thanks Gautam I'm running the latest sdk, in the pop up menu (simulator) there is an option iPhone Device 2.0 ...

iPad issue with a modal view: modal view label null after view controller is created

This is a weird issue. I have created a view controller with a nib file for my modal view. On that view there is a label, number and text view. When I create the view from the source view, I tried to set the label, but it shows that the label is null (0x0). Kinda weird... Any suggestions? Now lets look at the code (I put all of the ...

Shorten the touch delay in a UIScrollView?

I'm looking to shorten the touch delay on a UIScrollView, but I don't want to use setDelaysContentTouches:NO; I still want there to be a slight delay but my users are complaining about it being too long. Is there a way to do this? ...

NSFetchedResultsController Crashes in 3.0, works fine in 3.1

I have this code, basically copied from Apple's example: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { id <NSFetchedResultsSectionInfo> sectionInfo = [[[[AppDelegate getAppDelegate] myFetchedResultsController] sections] objectAtIndex:section]; return [sectionInfo numberOfObjects]; } O...

Is it ok to use the web view to render non web content web developing for iOS4

I'm just learning the iPhone SDK and about drawing with CG and UIKit and whilst I can see the usefulness for building interfaces as a web developer I can't help but think it would be a hell of a lot easy if I could layout content (ie heading, paragraphs, lists, images) with html and css presumably this is possible using the web view and...

iOS 4 Core Data... any changes with multitasking?

I have a question, i carefully went through and thoroughly understood the tutorial at http://developer.apple.com/iPhone/library/documentation/DataManagement/Conceptual/iPhoneCoreData01/Articles/01_StartingOut.html#//apple_ref/doc/uid/TP40008305-CH105-SW1 for iOS Core Data. The issue was that when i coded everything and run on iOS 4 with...

iPhone 4 resolution

Hey guys, here's a weird question. I'm doing device detection and I noticed that the iphone 4 reports the same resolution as the iphone 3g(s): 320x480. shouldn't this be higher? or did I miss something? ...

Saving image frames to a video format

Are there any easy to drop in solutions for saving a number of images into a video file in iOS? Example would be if I had 300 frames all saved as separate images and wanted to turn them into a single video file that a user could email or post on YouTube. ...

How to determine if an iOS device has a cellular radio?

Is it possible, without including an exhaustive list of models in the code, to determine if an iOS device includes a cellular radio? I am working on adding a check for host reachability to an app, and I'd like the failure message to be appropriate for the device. For example: A network connection is not available. Please join a Wi-F...

Core Data client+server/background saving/general import question

I'm working on a Core Data-based application that has a Mac application acting as a 'server' and an iPhone as a client. Everything is going swimmingly, except I'm running into performance issues. When the user taps an object, the server must return some objects related to that object (nothing too heavy, usually 3-4 objects) and show a U...

Update applications for iPhone 4 Retina Display

Hello, I was just wondering how you would go about giving a application the new sharper images for the iPhone 4? i know the SDK already cleans up text and UI elements but how should I go about updating my image UI. Is there a different way (like a folder or file extension) to add the new images for the iPhone 4 or should I just go and ad...

MP4 plays when accessed directly, but not when read through PHP, on iOS

I use a PHP script to validate video requests before serving them. This script works as expected on the desktop, with Safari and Chrome. But on iOS, I get a broken play button. I'm sure the video is properly encoded for iPhone/iPad, because when I access it directly, it works as expected. The relevant PHP code: $file_name = 'test-vi...

Extracted iPhone OS images showing as 0x0

Hi, when i try to download a image from my iPhone (Drop Pin Marker) through a FTP client the file always shows up on my desktop as width-0 height-0. It can be viewed on a internal file system viewer fine but when it gets to my desktop it has no size. Why is this and how can I open these files? ...

How can I get old version of genuine iOS images from Apple?

Is there any way to get old versions of iOS images from Apple? The images required to test apps. But there is no way to get this as I know. Of course, there're some floating files on internet, I can't trust them. Because any modified image is useless for testing purpose. ...

iPhone iOS 2.0 to iOS 4.0 SQLite compatibility

Hi! I would like my app to be compatible with iOS 2.0 as with iOS 3.0 and iOS 4.0. I'm going to use SQLite for many reasons. Now: what should I do with SQLite? Should I use the features available with the SQLite shipped with iOS 2.0 only? All the best ...

Determining the maximum number of simultaneous touches possible on an iOS device?

Is there a way to find out the maximum number of simultaneous touches on an iOS device (iPhone, iPod Touch, iPad) ? I've read here and there that iPhone can handle 5 while the iPad can handle 11, but I haven't found an official way (through a function call, say) to confirm this. ...

XCode Documentation - Offline Reading

Is it possible to have the iOS and OSX documentation available for offline reading? If so, how? ...

What type of webservice works best with iOS?

I'm going to be creating an internal app for the iPhone and iPad that will keep track of sales calls, the associated quotes, photos, and drawings for those quotes. I'm still in the concept design phase and I'm trying to read up on the different ways to communicate between my app and the webservice. Obviously since this will be used mostl...