iphone-sdk-4.0

can any one help me in upgrading a iphone sdk3.2 app to sdk4.0 (make it multi tasking)...

hi, I have done an application for iphone 3GS and now i want to upgrade the same app to work better for iphone 4 with multi tasking... Can any one help me in making this... My doubt is should i start the project from the scratch making for sdk4 or adding few methods to the existing will reach the target...? Waiting for reply... ...

UI Automation FrameWork for iPhone.

Hi All I am exploring the newly exposed framework UI Automation in iphoneOS 4.0. Has anybody tested their application using this framework. I will appreciate any help. I am trying to test a sample application that just contains a textfield and a button. I have written a script as [color=#1C2837][font=arial, verdana, tahoma, sans-ser...

AudioQueuePrime Fails with -66674

I have some code which does recording/seeking/playback using AudioQueue using either PCM or IMA4. Now this code is working fine on the simulator but when it's time to use on the iphone playback gives the error -66674 on AudioQueuePrime. I am mostly curious as to what are possible causes to this error as the documentation leaves much to...

Error when testing application on iPod

Hi All I am developing a iphone application. It is working fine on iPhone Simulator 4.0 but when I test it on my iPod (My iPod has latest version 4.0) then I get the error : Couldn't register com.myApp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or...

CLLocationManager delegate method is not called in iOS4

Hi Buddies, I am currently working in Map and i find the current location in my application and displayed. Now i am working with iOS4. So the CLLocationManger delegate method is not calling in iOS4. But i could run my application in older version of Xcode 3.1.4. it works fine and delegate method also called properly. So how can i call t...

iOS4.0: UIAlertView with UITextField messed up

this is what i get when using this code: [[Director sharedDirector] pause]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Rank on ScoreBoard: %d",positionOnBoard] message:@"" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"Submit", nil]; nameField = [[UITextField alloc] initWit...

Video only play sound when I moved from OS 3.x to 4

Well.. basically that's what happens, when I play a movie from a game I have, only the sound plays, the video doesn't, showing a black screen, even the touch is disabled. This is the relevant part of the code: myMovie = [[MPMoviePlayerViewController alloc] initWithContentURL:[self movieURL]]; myMovie.moviePlayer.scalingMode = MPMovieS...

iPhone 4.0 Simulator: didFinishPickingMediaWithInfo is missing UIImagePickerControllerOriginalImage?

I've got a simple UIImagePickerController which tries to grab the original selected image: if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) { if(defaultpicker == nil){ defaultpicker = [[UIImagePickerController alloc] init]; } defaultpicker.delegate = self; ...

How to use accelerometer to delay taking picture while phone is moving?

I'd like to help my users take a clearer picture by delaying the "snap" while the phone is moving. I've been able to implement this with a cameraOverlayView so a tap on the image takes the picture, but I would like to use the standard camera button. What is the best way to hook in to the standard button? I've seen one answer to put a ...

Symbol not found error after upgrading to iPhone SDK 4.0, running on 3.1.3

I just upgraded to iPhone SDK 4.0, and recompiled my static libraries and app, and when I run it on a device with iOS 3.1.3 (using deployment target 3.0), it says: dyld: lazy symbol binding failed: Symbol not found: ___sync_fetch_and_add_4 Referenced from: /var/mobile/Applications/7CA42202-DA9D-4A10-918D-593362E18000/renderer.app/rend...

How can I increment app icon badge when multiple local notifications fire?

I'm trying to understand the applicationIconBadge property of UILocalNotification. I can only set an explicit badge value, I can't specify I just want it incremented when the notification fires. http://developer.apple.com/iphone/library/documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#//apple_ref/doc/ui...

App black screens after launch. iphone SDK 4.0

Hi guys, I've tried searching high and low for the answer to this weird problem. My app worked perfectly with the last SDK, my app even worked with iOS4... I upgraded to the newest iphone SDK 4, and now when I try to simulate my app it just black screens (Same thing happens when I try run it on my provisioned device). It compiles fin...

Problem with upgraded project from iphone sdk3.2 to work on sdk4.0...

I had a application that was written for iphone SDK3.2 and now I want that application to be upgraded to full fill multi tasking... I just compiled it to SDK4.0 actually it has to get upgraded and when the home button is pressed it should 1st go to applicationWillResignActive and then it should goto applicationDidEnterBackground but my ...

IOS 4 behavior exit application

Hi guys! I have a hard time to understand my iPhone Application strange behavior in iOS4. Exit my app with Home button -> applicationWillResignActive , didEnterBackground is called, Open my app -> applicationDidBecomeActive , didEnterForground is called. Everything is normal here. Exit my app with Home button -> applicationWillRes...

"Touch" Web Page in iPhone SDK

Is there any way to "ping" or "touch" an external web page from an iPhone SDK? For example, if my user inputs 2 integer values, and I want a PHP script on my web server to intercept those variables, like so: http://www.example.com/script.php?var1=xxx&var2=xxx&udid=xxxxxxxxxxxx Is there any way to accomplish this "touch"? ...

Crash when running Leaks

Having recently installed the 4.0 SDK, I recompiled a client project to test how it would run under the new OS. (Previously testing with 3.1.3 had no crashes and only one memory leak, duly reported to Apple, who were unable to reproduce on 4.0 beta 3, and so closed.) Everything went very smoothly (no crashes during testing) until I deci...

Error when importing ad-hoc distribution of iPhone app into iTunes

I'm trying to make a ad-hoc beta distribution of my app, but get this error whenever I try and import it into iTunes: 'A provisioning profile named "embedded.mobileprovision" already exists on this computer. Do you want to replace it?' If I click Replace, the profile named embedded.mobileprovision appears in the iTunes profiles folder,...

Slowing down the playback speed of an audio file.

I'm trying to do is slow down the audio in an audio file I'm playing programmatically using the iPod player in an app. I've read that this is possible now in iOS 4 (supposedly they gave us access to the raw sound data from songs in the iPod library, which makes no sense to me given the DRM situation), and I've looked through the new API...

Run the same iPhone app on 2 devices at once?

I have an iPhone app that uses GameKit in Xcode. I'm having problems getting it to work, so I need to look at the NSLog output on the 2 devices at once. My problem is that when I click build and go, it runs it on the device that was connected most recently, and I would like to run it on the 2 devices at once and be able to look at the co...

NSFileProtectionComplete for iOS 4.0 apps

I saw a WWDC 2010 video about NSFileProtectionComplete and protecting app's data. Are there any examples out there? Does any one have sample code to share? ...