iphone

How to Invoke iPhone Maps for Directions with Current Location as Start Address

Hi all. I know it's possible to start the iPhone maps application by calling openURL on a google maps URL with parameters saddr and daddr with location strings or LatLong (see ex. below), but I'm wondering if it's possible to make the start address be the "Current Location" maps bookmark so that I can use the maps app's location handlin...

Non-US tax from Appstore earnings?

Does Apple "withhold a part of the earnings for tax purposes" even for non-US developers? I've seen this related question but it's not clear what happens to non-US developers. There's a reference to a form "W-8BEN" but I don't understand it -- is this what I have to fill out when I'm non-US and I want to avoid Apple to withhold the tax?...

Which GUI is similar to listbox on iphone?

I'm trying to move a former app from windows mobile to iphone. Any ideas which GUI in Interface Builder has the similar function as listbox? ...

How to send email when an app crashes on the iphone?

Hi, I was using an app the other day that crashed, but as it crashed also asked to send an email with the crash info. Does anyone know how this is done? Perhaps it was an exception handler in the code that before it lets the app die, sent the email, but just wondering if there are any onCrash type hooks in the iphone sdk. Thanks, Chr...

uservoice for iphone, anything formatted directly for iphone screen?

Hi, Does anyone know of a site similar to uservoice that provides a iphone specific web front end? The plan is that there will be a link in my iphone app for user feedback and this will open mobile safari at the uservoice or similar site? That is, a bug tracker with iphone/mobile safari tweaks? Thanks, Chris ...

reformat a simple html page on an iphone

I have a html called today.html and I use it on my iphone and I have to zoom in to see my tasks how can I have it formated correctly so that I it warps around the screen on the iphone and the text is the right size here is my code <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html ...

iPhone - when is dealloc for a viewcontroller called?

I am using UINavigationController to move between views. When I move back and forth in views, the memory used by my app keeps on increasing. On placing NSLog statements in the dealloc method of all viewcontrollers, I noticed it was being called for only some viewcontrollers and not all that were popped. For instance, this is the sequenc...

Debugging with Clang

I'd like to use clang on my Xcode iPhone project. However this is the getting started guide: http://clang.llvm.org/get_started.html I've been working with Xcode for a year but this is far far far from being understandable to me! Can anyone explain in plain english how to install and use Clang with my existing iPhone project? I am not f...

Mutable Object within an Immutable object

Is it acceptable to have a NSMutableArray within an NSDictionary? Or does the NSDictionary also have to be mutable? The NSMutableArray will have values added to it at runtime, the NSDictionary will always have the same 2 NSMutableArrays. Thanks, Dan ...

Running xcodebuild from a forked terminal

Hi everyone, I'm trying to setup an automated build server for an iPhone application. I'd like to be able to have nightly adhoc beta builds so that testers can follow the development. I've setted up xcode successfully xcode to perform adhoc builds and I can also launch the build from the command line: xcodebuild -configuration AdHo...

Anti-aliasing not working when resizing a UIWebView

I'd like to add a Web View to my app at 60% scale (like seen in Safari in the browse other windows view): Notice how the content looks nice and Aliased! If I try and add the same Web view to my app: NSURL *url = [NSURL URLWithString:@"http://www.google.co.uk?q=hello"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; UIWe...

How to add data to TableView on iphone?

I defined an array for tableView's listData. NSArray *array = [[NSArray alloc] initWithObjects:@"Sleep", @"Bashful", @"Happy", nil]; self.listData = array; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SimpleTableIdentifier]; cell.text = [listData objectAtIndex:row]; Now I want to add more data to the tableview...

Refreshing a navbar view controller

On my default navbar's rootview (a chatroom of sorts) I have a title bar, with a rightBarButton "compose", which pops up a uitextview and keyboard to enter a new chat message. After you hit "send", the message sends back to the server to store it in the db, that works fine. When I close the uitextview and load the rootview back, I do: ...

Present Modal View before Action Sheet completely dismissed

Is there a way to present a modal view controller view before an action sheet has completely been dismissed? I'm trying to do it here but it seems that the callback has to complete before the modal view appears: - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex { if (0 == buttonInde...

iPhone: Putting only one section of UITableView in Edit mode

I have three sections in my hypothetical UITableView. I'd like one section that is in editing mode. The rest of the sections to not be in editing mode. Is this possible at all? ...

iPhone: replacing a cell's view with UITextField

I'm basically trying to add a UITextField to a UITableViewCell upon tableView:commitEditingStyle:forRowAtIndexPath:. On insert, I want to add a UITextField over the existing cell. I setup the textField with something like this: -(void) setUpIndexField { inputField = [[UITextField alloc] init]; inputField.textAlignment = UITextA...

Performance: UIView in a UIView or replace the UIView?

I would like to have a main UIView take care of adding one of multiple UIViews as a subview. Since only one subview is active at any time, and the subview completely covers the main view, I might as well replace the main view. But this takes some effort, and I'm not sure if it would be worth the small gain in performance. Am I going to s...

What is the best way to download image data from ASP.NET to iphone?

I am building an iphone app that will require downloading an image from an ASP.NET web application (either as part of an XML document that is formatted according to the property list schema or by itself) into an (NSData *) object. What encoder should I use on the server side to generate compatible XML for the iphone? Is it as simple as...

iPhone SSL client certificate not working

Authenticating user with RSA certificate through iPhone' Safari browser not working with IIS website. I cant get it working. IIS just gives up with "client certificate required" error and safari doesn't provide certificate. Client: iPhone 3G latest firmware CA and user certificates deployed (it shows them as unsigned) Server: II...

How do I create a UITableView with UIImages? - Cocoa/Objective-C

I'm trying to create an application for the iPhone with a table of categories. If I select a category it will display a UIImage. However, I've been looking into it and I'm not sure exactly what to do. Can anyone lend a hand? ...