ios4

iPhone SDK 4 "Half curl page transition"

In Steve Jobs' keynote announcement of the iPhone SDK 4 earlier this year, one of the slides showed that a "Half curl page transition" was part of the new SDK: I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is? ...

iphone: date formatter on 4.0

Hello, until now I used date formatter the following way with string like '2010-06-10T11:50:01+02:00': NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"]; NSDate *from = [dateFormatter dateFromString:[NSString stringWithString:fromStr]]; That wa...

Parsing `<media:content>` RSS feed tags using touchXML

Hi, I have the following RSS feed that I'm trying to parse using touchXML for an iphone application. <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:ext="http://ooyala.com/syndication/ext/" xmlns:mediasl="http://www.slide.com/funspace/developer/" xmlns:itunes="http://www.it...

Building and Installing to ios 3.2

I recently installed the latest version of xcode with support for ios 4. Unfortunately when I tried to compile and install my app (which I have successfully compiled many times) for my iPod touch (first generation) I get the error that the target I have set requires ios 3.2 and above. I have looked around for a 3.2 update but have not be...

MKMapView ignores update of centerOffset in iOS 4

I previously created a custom callout bubble as a subview to the MKAnnotationView because the built in callout is so limited. This requires me to change to centerOffset of the MKAnnotationView when it is selected to account for the size of the callout bubble. This all worked perfectly before iOS 4 came out. Now, with iOS 4, it complet...

iPhone 4 supporting High-Resolution Screens UIwebView

Hi there, I'm using UIwebView on my my app, but it doesn't support 960*640px, stuck at 480*320 How I can increase my resolution ? NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"checker" ofType:@"html"]; NSData *htmlData = [NSData dataWithContentsOfFile:htmlFile]; [webView loadData:htmlData MIMEType:@"text/html" textEncod...

What happens when an iOS device cannot allocate memory? (eg. when it has run out of memory)

If an iOS device cannot successfully [NSObject alloc] (because it is out of memory), will it return nil, throw an exception, or will the OS terminate the app? ...

AudioQueueStart() method can not play music in ios4 background

In the iphone 3.x platform, I use AudioQueueStart method to play music, but on ios4 platform, once the program into the background,then no sound, but I notice that the app is still running in background, I've added into the info.list UIBackgroundModes/Audio and applicationDidEnterBackground methods ...

iPhone 3G + iOS4 debug problems

Hello, I recently updated our test iPhone 3G with the latest version of iOS 4 to be able to test our apps on the new OS. I regret that I didn't read the forums because after the update the device's performance suffered a lot. However this is not a problem because the device still works. The problem is that when I try to debug our app th...

Problem with custom UIImagePickerController with SDK 4.0

Hi Coders, I'm trying to create own UIImagePickerController using Assets Library Framework from the latest SDK 4.0. Here's the code: -(void)viewDidLoad{ [super viewDidLoad]; groups = [[NSMutableArray alloc] init]; ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc] init]; NSUInteger groupTypes = ALAssetsGroupAlbum; ALAsse...

UIActivityIndicatorView doesn't work on iPhone 4 with iOS4

I noticed in one of my apps that the activity indicator doesn't seem to work on an iPhone 4. It works fine on an old iPhone upgraded to iOS 4 just not on an iPhone 4. Does anyone know why it isn't working? ...

Wifi connection doesn't stay alive when asleep, with iOS4

Knowing that iOS4 support wifi stay alive in asleep is really happy thing. However I got some different experience: I've got 2 iPods, iPod 2nd gen & iPod 3rd gen. Both updated to iOS 4 beta. iPod 2g can stay wifi on in sleep while iPod 3g always disconnect wifi in sleep. I ping both of them while they're in sleep mode, only iPod 2g keeps...

NSDateComponents returns a different Seconds value in iPhoneOS 3.1.3 compared to iOS4

I use this method to turn a time interval into a string of the form MM:SS NSTimeInterval testTime = 60.0; // for example NSCalendar *sysCalendar = [NSCalendar currentCalendar]; NSUInteger minuteAndSecondComponents = (NSMinuteCalendarUnit | NSSecondCalendarUnit); NSDate *intervalDate = [NSDate dateWithTimeIntervalSinceNow:testTime...

iPhone iOS 4.0 Camera FigCreateCGImageFromJPEG returned -1

Hi, Since I updated to 4.0, when I take a photo with my App using UIImagePickerController I get the following error output: * ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 711733 bytes. I still get the image returned and can continue as normal, but does any body know what and why I get this error. I also get the fo...

ApplicationWillTerminate in iOS 4.0

Hi, The applicationWillTerminate delegate method is not getting called in iOS 4.0 When I hit the Home button I am seeing the applicationWillResignActive and applicationDidEnterBackground delegate methods getting called. - (void)applicationWillResignActive:(UIApplication *)application { NSLog(@"Application Did Resign Active"); } - ...

Downloading iPhone SDK now that iOS is out

I need to develop a simple iPhone application, but the only Mac I have access to is running Leopard. This is no problem, I don't need to make an iOS 4 application, iPhone 3.2 will suffice. I problem is the SDK download has been removed form Apple's website. I cant find it anywhere! Is there anything I can do??? I really don't want to u...

Development use of iOS 4.0 (8A293)

Hi I recently upgraded my new iPod from iPhone OS 3.1.3 to iPhone OS 4.0 (8A293). However wen attached with xcode organizer i get following error. OS Installed on Panks’s iPod 4.0 (8A293) Xcode Supported iPhone OS Versions 4.0 (8A274b) 3.2 3.1.3 3.1.2 3.1.1 3.1 3.0.1 3.0 I tried to downgrade IOS to 4.0 (8A274b) however wen installati...

UIImagePNGRepresentation() and scale (iPhone 4 screen)

I've got some image generating code that uses UIGraphicsBeginImageContext(), UIGraphicsGetImageFromCurrentImageContext() and UIImagePNGRepresentation() to do some drawing, then save it to disk as a PNG for later use. Does UIImagePNGRepresentation() take into account scale? As in, if I have an image that is 20 points wide, will the resul...

Previewing on iPhone 4

Besides the obvious answer of "buy an iphone 4" (I'm in Australia so that's not possible at the moment) - is there an easy way of checking how your app looks on the new iPhone 4. I have a background image in my app which I want to check how it scales. Any suggestions? ...

No eligible bundle identifiers submission error

I just went to submit my first app involving iAds, and in the beginning of the app submissions process there is a new button to "Enable iAds". I click and get the following error: "You have no eligible bundle identifiers. Please register one here." So i went to my provisioning portal, expecting to see a configure iAds option similar to...