iphone-sdk-3.0

change default application on iphone

Hi Guys - Is there any way to change the default application? E.g. change mailto: behavior to launch 3rd party application when user selects an email address anywhere on iphone OR launch SMS application when user selects a phone number. Thanks for your help! ...

ABPeoplePickerNavigationController - remove "Cancel" button without using private methods/properties?

I'm using the ABPeoplePickerNavigationController, a subclass of UINavigationController, and in the context I'm using it the default nav bar button for the right side, "Cancel", makes no sense. I can't find a way to disable or hide it, and whatever method used needs to be public and store-approvable. Getting rid of the nav bar entirely (p...

how to get path of temp recorded video file in iphone sdk and play?

i know if we record video in iphone 3gs the video will be stored in temporary directory.so how do i get the path and play the video using mpmovieplayer? ...

why uislider calling a method twice?

i have set an ibaction(touch up inside) to uislider.when i slide the slider and moves my finger up it is called twice.anyone knows about it? or if someone knows about how to call a method when lifting finger up from uislider.Note i have already a method(Value changed) bound to uislider ...

how to get first frame of recorded video using iphone sdk?

i have read in this Stack Overflow Post that how to get thumbnail..... but i want to get full frame of the video so that i can show that in uiimage view.is there a way to do this? ...

How to get user response when prompted for core location?

When I install my application on the iPhone it asks for the current location with the options "Don't allow" and "Ok" in an alert. How do I find out which option was chosen? I also want to show this option only once. If the user chooses to allow their current location to be found, I want the device to automatically get the location in the...

programmatically powering off iPhone

Hi There , Is it possible to programmatically power off apple iPhone or does apple dissalow this. If apple disallow this is it possible to programmatically mute the sound on iPhone? Your thoughts are greatly appreciated. Tony ...

Iphone exit button action

Hi All , I have a problem in sound. when game background sound is playing & when i pressed exit button of iphone then application is closed. But when button is pressed then i want sound off but their is some delay in application closing. I use Application with terminating method for SDK 3.0: -(void) applicationWillTerminate:...

how to play sound when alertview appears iphone sdk?

i want to play a sound file when alertview appears and plays continuously till user clicks on ok or cancel.how do i do this? ...

Switching Off Sound in an iPhone Application

Hi, Can someone please tell me how to switch off sound in an iPhone Application. Thanks :) ...

How to provide storekit content?

For my app i have it far enought that it will ask for a confirmation and account for an in-app purchase, but I don't know how to enable the item after the purchase is complete. SKPayment *payment = [SKPayment paymentWithProductIdentifier:@"com.silver.tapp.page2"]; [[SKPaymentQueue defaultQueue] addPayment:payment]; Thats what i have ...

New to iPhone SDK: touchesBegan not called

Hi, I created a very very basic iPhone app with File/New Projet/View-Based application. No NIB file there. Here is my appDelegate .h @interface MyAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; MyViewController *viewController; } .m - (void)applicationDidFinishLaunching:(UIApplication *)applicati...

Is there an iPhone 3.0 SDK API for calendar event management?

Is there an API in the iPhone 3.0 (or later) SDK to programmatically create & manage calendar events? ...

Selecting one UITableView deletion control ("-" button) deselects others. How can I select more than one?

I have an iPhone app that uses a UITableView with the UITableViewDelegate/UITableViewDataSource protocols. I'm struggling to do multi-select for deletion (not checkboxes, just the standard "-" delete button). The basic problem is that when I click "edit," put the table view into edit mode, and then start clicking "-" buttons, I can onl...

compile error for iphone simulator

I'm trying to compile some code for the iphone simulator but am getting this error: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -O3 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -Os -O3 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS...

how to prevent uilabel text from shrinking?

i am showing digits on uilabel and using timer to update text something like counting down.. i am using this font to show time like lcd clock [CountdownLabel setFont:[UIFont fontWithName:@"DBLCDTempBlack" size:48.0]]; i am facing two problems in this. using this font the dots(:) between the digits is smaller than the digits. the dig...

Parsing a .txt or html file into a string in the iPhone SDK

So, what I'm trying to do, is take a .txt or html file, being able to search through it, and grab a piece of text from file, place it into a string and finally adding it into a textView. Each couple of piece of text will be divided like this: 001:001 Text1 001:002 Text2 001:003 Text3 002:001 Text1a 002:002 Text1b...

compile for 3.0 with optional support for 3.1 API

My app uses the camera, and I added the zoom function thanks to 3.1 API (cameraViewTransform most importantly). But I want my app to run also on 3.0 (without the zoom of course). The problem is that, I cannot compile the app in 3.0 due to this line which calls 3.1 properties: CGAffineTransform initialTransform = photoPicker.cameraViewTr...

IPHONE: A doubt about releasing a variable

Hi, Consider this pseudo code... ... // an image is initialized UIImage *imagePX = [[UIImage alloc]initWithContentsOfFile:... bla bla imagePX = [self rotateImage:imagePX]; //A [self doStuff:imagePX]; //B then I have the rotateImage method... - (UIImage*) rotateImage:(UIImage*)source { ... rotate the image... draw on context... ...

IPHONE: Analyzing leaks with instruments

Hi, I am trying to locate leaks using instruments, but the leaks I see there are like the ones in the next picture: leaks As you can see there's no information of which line of code is exactly leaking. All leaks I have, around 20, are like this, or in other words, the leaks don't show any line of my code in particular. The leak...