iphone

How can I dim the view in an iPhone application?

I've seen a lot of iPhone apps that will dim the screen with an activity indicator when it's updating or downloading something to let the user know it's busy. I know how to do the activity indicator but how do I go about doing the dimming? Please post example code if you can. ...

iphone sdk 3.0, testing on firmware, not just simulator

Testing an application built with iphone's sdk 3.0. Based on experience, I know that bugs will manifest on hardware that will never appear in the simulator, so the simulator will only take me so far. Is it possible to put the 3.0 beta firmware (not sdk) on a hardware device, and if so where can I find the beta firmware? Or do I have t...

iPhone, bundles and file access

Question about bundles and file access. I've adding a series of folders to my project (using the Add existing file option). This results in the folder contents being shown in Xcode as a blue folder. The following works: NSString *imageName = [NSString stringWithFormat:@"/File-03/images/image-%02d.jpg", imageIndex]; return [UIImage im...

Contents of UITextField and UITextView to NSString

I have a UITextView and 2 UITextField set up. UITextView resigns first responder status when empty part of the screen is tapped, the same for the 2 UITextField, plus for these 2, the return key also resigns first responder status. All 3 are declared in interface. I would like to get the contents of all of these to individual NSString an...

Encoding spaces in UITextView / UITextField to URL format

I'm trying to send the contents of UITextView or UITextField as parameters to a php file NSString *urlstr = [[NSString alloc] initWithFormat:@"http://server.com/file.php?name=%@&tags=%@&entry=%@",nameField.text, tagsField.text, dreamEntry.text]; When i log urlstr, the url format is ok just as long as the UITextView or UITextFi...

UIImage Rotation custom degrees

I have been using the code in this sample to assist and this works well. http://www.platinumball.net/blog/2009/03/30/iphone-uiimage-rotation-and-mirroring/ I cannot workout how to rotate by a custom amount of degrees between 0 & 360.... ...

Horizontal scrolling not working in tabBar of three20 project??

I am using the three20 open source project by Joe Hewitt. have the following code in a UITableViewController: _tabBar1 = [[TTTabStrip alloc] initWithFrame:CGRectMake(0, 0, 320, 41)]; _tabBar1.tabItems = [NSArray arrayWithObjects: [[[TTTabItem alloc] initWithTitle:@"item1"] autorelease], [[[TTTabItem alloc] initWithTitle:@...

Could not find CoreAudio.h for iPhone

I am trying to port an application written for Mac to iPhone device. However, I get compilation error for import CoreAudio/CoreAudio.h // No such file Could you please let me know how can fix it? Thanks. ...

Refresh UIView with paging animation

I have a UIView that has controls built based off a date. I want to flick to change the date and refresh the UIView with an animation like the paging animation. Is that possible? I do not want to create multiple copies of my UIView because it is already close to exceeding memory. 2 copies of my UIView would definitely crash the phone...

How do i stop XCode from having build errors repeatedly appear and disappear?

Very often, when I run my unit tests for my iPhone project, XCode feels like making the actual errors disappear from the errors and warnings group. These errors are often under the general sub-item of that group, and often when I need to read the text of the error in detail, all errors disappear and all I have left are the build warning...

How do I get the UDID of the iPod/iPhone?

I have seen programs that do this, like the very useful 'BetaHelper' application. How do I get the Unique Device Identifier of the iPod of iPhone that my application is running on? ...

Retrieve HTTPResponse/HTTPRequest status codes iPhone SDK?

I need to check and evaluate the HTTP Status Codes in my iPhone app. I've got an NSURLRequest object and an NSURLConnection that sucessfully (I think) connect to the site: // create the request NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/"] cachePolicy:NSURLRe...

Which toolkit for iPhone webapps?

I'm aware of several Javascript frameworks that assist in creating webapps for the iPhone and ipod Touch: Joe Hewitt's iui -- http://code.google.com/p/iui/ Ciui -- A revised take on Joe's work by Vladimir Olexa of CNET -- http://code.google.com/p/ciui-dev/ WebApp -- by Chrilith. http://webapp.net.free.fr/ Unfortunately, he doesn't publ...

iPhone Debug Dump

I am unit testing an application on the iPhone, and I'm trying to develop a built-in method to record a specific action that users make to interact with my application. I would like for this data to be transported back to me in some way. Originally, I had a method of collecting this information, but I had to be around. This was with n...

Using the google maps api for reverse geocoding lat/long from iPhone

I am currently using the google maps' reverse geocoding API to convert long/lat received from an iPhone's CoreLocation API into city/state information on a google app engine server. Would this be considered a violation of the terms? I've done some research and cannot find a direct answer to this question. Right now, we will be distrib...

Why is an iPhone Device ID 40 characters?

UUIDs are usually 36 characters. ...

Two iPhone Dev Licenses on one Mac?

I have an odd situation. I have a macbook that I use for work and I am an approved iPhone developer, etc. I would like to build iPhone apps to put out under my name (they should be kept and tracked separately from the work license I have, since that really belongs to the organization and not me), but I don't want to buy another mac. C...

Core Animation with contentsRect jerkiness

Hi, in my (puzzle) game the pieces are drawn on-screen using a CALayer for each piece. There are 48 pieces (in an 8x6 grid) with each piece being 48x48 pixels. I'm not sure if this is just too many layers, but if this isn't the best solution I don't know what is, because redrawing the whole display using Quartz2d every frame doesn't seem...

How to lookup a zipcode from a GPS coordinate?

Say I have a web service API that accepts a zipcode as a parameter, but I only have access to a GPS coordinate (latitude, longitude). How can I dynamically lookup the zipcode that the coordinate belongs to? I'm doing this work on the iPhone, so hopefully there's a simple way to do this within the CoreLocation APIs that I'm overlooking i...

In cocos2d (iphone) how would you animate a sprite (frame by frame)?

What is the most efficient way to do this? I have four images that I would like to play to become an animated sprite. Thanks in advance! ...