iphone-sdk-3.1

GameKit wifi connection?

I've read that as of iPhone OS 3.1, GameKit supports wifi connections. But the documentation states: "If your application configures the peer picker to allow Internet connections, your application must also dismiss the peer picker and present its own interface to configure an internet connection." Does this still stand? ...

NSData writeToFile gives a "may not respond to" message on iPhone SDK

I have a problem with an NSData object -writeToFile: method, and the same with the NSString object as well. When I compile to software, it gives the NSData (or NSString) may not respond to -writeToFile: message. When I run the software it reaches this line and make an exception. The data, I try to write into a file, is containing an A...

AppleFairplayTextCrypterSession::fairplayOpen() rashing iPhone on startup

Hi, I'm trying to find out if anyone here had mysterious crash on startup and peeking into the console logs, you see AppleFairplayTextCrypterSession::fairplayOpen() failed ? The iPhone app will connect to remote server for xml data and if the server is down this will crash the app. On subsequent startup, it will always crash until I re...

CorePlot problems

Hi, I started with core-plot now and came to some problems. I followed the tutorial from this page: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application and completed with the instructions from this page: http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications (such as -all_load). But I still h...

Change UIImagePickerController Delegate

I access the camera via UIImagePickerController, and when I set the delegate to self, I can use the delegate methods. However, for what I have planned I need to have the delegate methods in another class, but whenever I try to do that, it will dismiss the the picker whenever I take a picture. When I do this, it works: preview.delegate...

Help stopping audio using AVAudioPlayer

Alright I have two problems. I'm using AVAudioPlayer to play a simple audio file in .caf format. What I'm trying to do is have a play and pause button. Here is a sample of a simple IBAction to play the audio from a button. - (IBAction) clear { NSString *path = [[NSBundle mainBundle] pathForResource:@"clear" ofType:@"caf"]; AVAudioPla...

iPhone - How do you make a resizable rectangle for cropping images?

Hi everyone, I'm having a trouble making a re-sizable rectangle for cropping my images. I'm trying to achieve something like this picture: http://img192.imageshack.us/img192/8930/customcropbox.jpg Well, the only problem is I have no clue where to actually start. I need some advice to how I can achieve this effect of cropping. What docu...

Image Move & Resize not working when using a custom camera overlay iPhone SDK 3.1+

I used to use the old-school method of adding an overlay to the camera screen, and that worked fine. However, since 3.1 came out, Apple is insisting that I use the API to add an overlay. I quickly got the overlay to work, but it seems that if I use the custom overlay, then the move & resize screen is not responsive, I can only use or r...

iPhone Accurate Reverse Geolocation

I want to get the most accurate location possible in my app. I have tried in the past (about 2 months ago) and I used to get some quite odd results. Like one time it would get a location pretty accurate (down to a few doors down), then I would try again 5 minutes later in the same spot and I would get somewhere a few kms away. So what I...

UIActivityIndicatorView inside UIButtonBarItem not working properly

I am trying to get a UIActivityIndicatorView to work inside of a UIButtonBarItem using the following code: - (void)showActivityIndicator { UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; [activityIndicator startAnimating]; UIBarButtonItem *activityBarBut...

When to release an object added to an NSMutableDictionary

Hello. I am working on an iPhone app that will construct, at run-time, an NSMutableDictionary for which the values (of the key-value pairs) will be NSMutableArrays. Being somewhat new to the Objective-C, I am concerned that the following will cause a memory leak: - (void) addNewSupplierPhoto:(UIImage*)image toSupplierID:(NSInteger*) sup...

Freeze or pause iPhone camera image

On iPhone's built-in Camera application (OS 3.1), touching the shutter button shows an iris animation, then displays the image that was taken for a second or so before animating it away. Is anyone aware of a simple way to get this "brief pause" activity? Or do I have to resort to manually adding the image as part of my custom cameraOve...

UITextFieldDelegate != IBAction backgroundTap

Hi All, The scope of this question is IPhone 3.1 sdk (app running in simulator still) I have a table view that has a cell with a UITextField in that cell. The table view is grouped, and has one section with just a couple fields. Im NOT using IB so backgroundTap is out of the question (as far as i can tell at least). When i click the...

How can learn great iPhone Programming ?

Hi everyone .... iam new iphone developer and i built several apps . i read some books like Beginning iPhone development . but i have problem , that is i can create application based on books that i read ! How can bursting iPhone programming and build any application that i like it ? i need some good advise . iam living in iran and there...

Finding the distance, currency, temperature units etc. for a country (iPhone)

Hi During the localization of my app I went through a lot of documentation, somewhere Im sure I read that there is a way to get a set of units that is linked with the locale. I believe it said something like "units based on cultural..." something. I would like to display temperature and distance in Fahrenheit and Miles for some count...

Sending MMS in my iPhone Application.

Hello everyone!! hope you all are enjoying. Recently i come to know that now iPhone 3G and iPhone 3GS support MMS sending and receiving functionality. I have seen a video in which Apple's native Message Application sent MMS. Same MMS functionality I want to integrate with my Application. I Don't know how can I put it working. Need ...

MMS Streaming in iPhone Application

Hello everyone!! hope you all are fine and also in one of your best of moods!! I have a query to ask you. I have few mms at server side. I want to stream those mms clips and want to open in my Application. anybody has any idea how to do this?? kindly share your knowledge... Looking forwards!! Regards, Arun Thakkar ...

iPhone SDK Invert the Colors of a UIImage

Hey everyone I've got an iPhone app that allows a person to draw something on the screen with their finger. They draw with a white line on a black background. However, when I upload this image to the web server, the line itself is white. I have been trying to work through the core graphics libraries in search of a way to invert the colo...

Intro Page for 5 Seconds after the default.png file and before the MainWindow.nib

Hey Guys , I had created a project where the default.png sleeps for 3 seconds and then the MainWindow.xib is loaded I wanted to create a new IntroPageViewController.xib before the FirstPageViewController.xib loads . I wanted to put some text in the IntroPage which loads for 10 seconds and has a skip button . I already created the FirstP...

Using consumable items with In-App Purchase for permanent items

For my upcoming iPhone application I'd like to offer In-App purchases of expansion content (things like additional unit types), but I'd like to offer them in a booster-style format, i.e., you buy a booster pack and get X new unit types out of Y total units. Units can stack and are useful in duplicate, so you can get some of the same uni...