iphone

Strange iPhone memory leak in xml parser

Update: I edited the code, but the problem persists... Hi everyone, this is my first post here - I found this place a great ressource for solving many of my questions. Normally I try my best to fix anything on my own but this time I really have no idea what goes wrong, so I hope someone can help me out. I am building an iPhone app tha...

UIStringDrawing Change font color - cocoa touch

UIFont doesn't appear to manage color, is there a way to change the font color using UIStringDrawing.h or specifically: - (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font Thanks ...

Embed WAVE-files in iPhones' Mobile Safari

Hi, I host a WAVE-file, which plays fine, it's URL is entered in Mobile Safari directly. Trying to embed it in a simple HTML page shows me a "can't play" icon. What's wrong with my embed code? <embed href="http://localhost/test.wav" type="audio/wav"/> ...

Creating iPhone UI elements

I've found a bunch of iPhone objects inside interface builder, but I assumed there would be a standard pack of icons, gradients etc to make things more applelike. How should I create these graphics, simply using pngs or are there special drawing tools shapes I can use inside interface builder? ...

UIProgressView: How to get the old style?

Hi, I'm searching for the old style of the UIProgressView: The only UIProgressViewStyle, I'm able to present is this: Is the old one still available? Setting the property UIProgressViewStyle always leads to the blue UIProgressView. ...

CGPathRef intersection

Hi all, Is there a way to find out whether two CGPathRefs are intersected or not. In my case all the CGPaths are having closePath. For example, I am having two paths. One path is the rectangle which is rotated with some angle and the other path is curved path. Two paths origin will be changing frequently. At some point they may inters...

Is it possible to browse Safari bookmarks from within another iPhone application?

I hope I overlooked something, but I haven't been able to find anything about reading/loading Safari bookmarks while using another application.. Is that possible? I want users to be able to copy existing bookmarks to a list in my application. Thank you very much ...

iPhone OS 3.0 + OpenGL ES 2.0. Is anyone seeing better anti-aliasing?

I have been unable to find a way to anti-alias my rendering on iPhone OS 3.0 + OpenGL ES 2.0. I had assumed there would be multisampling but that appears to not be the case. I've been told that fragment shaders can be made aware of the projected pixel via a partial derivatives extention but I have no idea where that functionality lives o...

What percentage of iPhone users have the different versions of iPhone OS/firmware?

What I'm looking for is basically a breakdown of the iPhone OS install base by version number. Ars Technica did it a while ago, but I'm looking for a more recent, or ideally, a regularly updated source of this kind of information. I need this to inform my decision on target platform for my app in order to make the trade-off between the...

iPhone: Save image to a specific photo album

The application I am working on manipulates an image for a user, and after the user is done, they can save that photo. I have no problem capturing the screen and saving it (as I want some of the labels saved with the image) but this call: UIImageWriteToSavedPhotosAlbum([self getScreenAsImage] , nil, nil, nil); only appears to allow me...

UITableView "autoresize" with custom UINavigationBar size

HTF? i'm new to the iphone SDK. for a navigationbar and uitable (from the NIB) eg. an empty/new navigation-based app, what is the best way to change the height of the uinavigationbar without it clipping/overlapping the uitableview? i essentially just need to move the uitableview down and i've tried just about everything now. Q1) is it ...

Multi-threading with iPhone SDK

I'm using a separate NSAutoReleasePool for my thread NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [self bulkyFunction]; // time consuming op [self performSelectorOnMainThread: @selector(doneAll) withObject:nil waitUntilDone:NO]; [pool release]; and I call a function (bulkyFunction) that allocates two strings. current...

Trying to reolve touch to location always returns zero (0) as x location.

While writing the touchesBegan handler for my view I ran into this interesting error. Code: ... UITouch *touch = [touches anyObject]; CGPoint point = [touch locationInView:self]; ... The problem is point.x is always zero, no matter where I "touch" and y is a huge number that flunctuates somewhere between 1070000000 and 1090000000. T...

Send Multi-Part Email from iPhone App

I am creating an iPhone app where the user can send their work in an e-mail to whomever they wish. It is easy enough to open the Mail App using the openURL method of UIApplication. NSString* lsMailToStr = @"mailto:?subject=Subject!&body=Body"; [[UIApplication sharedApplication] openURL: [NSURL URLWithString:lsMailtoStr]]; However, it...

iPhone Login Notifications

Hi Team, Had a question related to best practices in iPhone login authentication using asynchronous NSURLConnection. Since the same delegate is used for logging into a server, how do folks differentiate notifications coming back for an authentication request, versus when you recieve data for subsequent data requests? Thanks, Sj ...

iPhone SDK: Does 3.0 clear the cache of a imageNamed? Because 2.2.1 doesn't!

Hello, I am creating an application for the iPhone which involves having more than one button which all animate the same UIImageView. It works well in the simulator, (like practically all apps) but when it comes to the device it plays the animation well, but with repetitive pressing of the buttons the app quits. So far I have implemented...

iPhone, Core Data and JSON

I have a web site with an API which publishes the information using JSON. I can access this API fine, but I would really like to store the information in an iPhone application using Core Data. Is there a way to hook the Persistent Store to the JSON API so rather than having to keep them in sync using some algorithm I can just use the w...

Modify appearance of 'empty' cells is plain UITableView

Hello, If you have a plain (not grouped) UITableView with a single row, the rest of the screen is filled with blank or empty cells. How do you change the appearance of these blank cells? Af first, I thought they would have the appearance of the cell used in the table view but it seems they don't. The people from Cultured Code (Things) ...

iPhone address book - auto-select Phone owner

In 3.0 they have Auto-Fill for Safari. You go into the settings app to turn it on, and it needs to tie into an entry in the Address Book. I went into the Settings app to set up mine, and I noticed that it already had guessed who I was. Was it doing this using something in the API? If so, how do I access this function? My iPhone syncs ...

How to hookup or create Sqlite DB with Core data model in iPhone

I am able to create the DataModel, Entities and Properties. How do I now create the DB? Do I have to create it manually making sure that all the properties and entities are mapped? I am following the Recipes Core Data sample and have noticed a method in RecipesAppDelegate.m: - (NSPersistentStoreCoordinator *)persistentStoreCoordinator ...