iphone

Getting a iPhone OS 2.2.1 app approved after the OS 3.0 release

I’m writing a new iPhone app which doesn’t depend on any of the 3.0 APIs. 2.2.1 should work fine and has a substantially larger user base currently and in the near future as last I checked Apple was expecting iPod Touch owners to cough up $10 to upgrade to 3.0. That leaves a nontrivial number of cheap users who will stay with 2.2.1 as ...

iphone set a fixed font size for UILabels

I have several UILabels of various sizes on my Views. I want all the UILabels to have the same font size no matter how wide or tall my UILabels are. I have tried several settings in IB but nothing seems to get me that fixed font size. I am sure I am missing something simple. Can someone please clue me in? ...

Can I get a function list in Xcode?

I'm a longtime Codewright user on the PC for doing software and I recently moved over to iPhone development and have been learning to use Xcode. Is there a way to see a function list for the current open file so I can quickly move around in my source files like I could back in Codewright? Or do I have to just create book marks? Keith ...

Which is a better option, OpenGL or a game engine for developing a game for the iphone or ipod touch?

I am new to OpenGL ES, and I'm about to begin a 3D game for the iphone in which we are showing some car pursuit or racing. Is it possible just with the OpenGL ES or UIKit only, or do I have to use other tools for it? I am comfortable with UIKit but newer to OpenGL/OpenGL ES; which would be better to start this game? Or should I use a ga...

iPhone: Selecting a contact and loading into custom application

I'm trying to build a application that allows the user to either A) enter a new person, or B) select a person from their contacts... My question is on item B. I've read briefly about loading Modal view controllers, but, was hoping someone could point me in the direction of a tutorial or article talking specifically about that kind of use...

Can I use iPhone 3.0 symbols when building for 2.2.1?

I've been working on iPhone app for awhile and still want to support 2.2.1 One of the features is that the user can start the app via email by clicking a link. In the 2.2.1 world, I accomplished this by implemting the application: handleOpenURL: message. In iPhone 3.0, they've changed things up adding the application: didFinishLaunchi...

iPhone: Weird space at the top of UINavigationController

I'm having a strange problem with adding a UINavigationController to my iPhone application. I add the controller as follows: myViewController *viewController = [[myViewController alloc] initWithNibName:@"myView" bundle:nil]; myNavigationViewController *navigationController = [[myNavigationViewController alloc] initWithRootViewControlle...

Turning on 'DEBUG' macro value

In my code, I want to conditionally perform a few operations with: #ifdef DEBUG NSLog(@"I'm in debug mode"); #endif I've configured Project->Edit Project Settings->Build tab so that 'DEBUG' is listed as a User-Defined setting with a value of 1. Debug is selected in the Configuration dropdown. This still doesn't turn on the directive f...

iPhone SDK: When running Object Alloc, GeneralBlock-0 show large number of net allocations?

I'm was running an iPhone application I'm working on through the Object Allocations performance tool, and I've noticed that "GeneralBlock-0 has a large (constantly growing) number of net allocations. Even so, the net and overall bytes for this group is consistently zero. Is this normal or does it indicate some a leak or memory manageme...

how to get around lack of 'add' button in ABPeoplePickerNavigationController?

My app needs to associate instances of a custom class with contact records in the iPhone's AddressBook. Everything's all well and good when I present the ABPeoplePickerNavigationController and allow the user to pick an existing contact. Problem is there's no obvious way to allow a user to easily ADD a contact record if the one they're lo...

Inserting an NSString into NSBundle's pathForResource?

This animates the UIImageView in the impactdrawarray: if ( ((impact *) [impactarray objectAtIndex:iv]).animframe == 70){ ((UIImageView *) [impactdrawarray objectAtIndex:iv]).image = [UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"explosionA71" ...

Issues with NSURL and iPhone SDK 3.0 for placing phone calls

There is a newly introduced issue with iPhone 3.0 SDK and how it deals with the NSURL method for automatically making phone calls. It used to be that you could call a method (NSURL), pass in a string with a URL prefix (tel://, sms, etc...) and the iPhone OS would dispatch the message to the device, such as iTunes, App Store, Phone, SMS,...

Develop iPhone app without a Mac?

Possible Duplicates: How to develop iPhone applications on a windows PC How can I develop for iPhone using a Windows development machine? I'm looking to build an iPhone app for my wife's phone, but am not interested in buying a Mac as a development platform for a one-off piece of work. The app: should run standalone on the ...

iPhone StoreKit - invalid product id's

I'm trying to test the in App purchase within the sandbox environment. In order to test the code I a) created a In App Purchase Test User account under 'Manage Users' in iTunes Connect b) created some in app purchase products under 'Manage Your In App Purchases'. I used numeric values and alpha-numeric values for the Product ID's. c)...

Is it possible to both play a sound and record from the microphone at the same time on the iPhone?

I want to both play sound and record sound at the same time on the iPhone. All the apps which record sound first disable any music playing. However as music would disrupt their purpose I don't know if they're doing this deliberately or whether the iPhone does it automatically when you record from the microphone. Does anyone have experi...

Refreshing the UITableView from UITableViewCell

Is there an easy way to trigger a [UITableView reloadData] from within a UITableViewCell? I am loading remote images to be displayed after the initial table display, and updating the image with self.image = newImage does not refresh the table. Resetting the cell's text value does refresh the table, but this seems sloppy. MyTableViewCe...

Error converting wav to caf for the iPhone using afconvert

Here's the command I'm typing in a Terminal window: afconvert -f caff -d LEI16@44100 -c 1 buzzer.wav buzzer.caf Error: ExtAudioFileOpenURL failed ('dta?') Notice that buzzer.wav is my sound file. What's wrong? How should I do the conversion? ...

iPhone camera images are rotated when uploaded to web

I'm using UIImagePickerController to take a photo in portrait mode on the iphone and save to the web. The photo appears in portrait on the phone, but rotates 90 degrees on the web. If I download the photo and look at it in Preview (mac) or Photoshop (mac or pc) it is in portrait again. In Windows Picture Viewer (pc) it's rotated to lan...

Is there a better way to put a bunch of stuff in NSUserDefaults?

I'm confused about NSUserDefaults on the iPhone. I come from a C / asm background and the Objective-C stuff has been a learning experience. I'm currently using NSUserDefaults to store some strings (for the names in a highscore table). I want to start implementing a "Save Game" type feature so if the user gets a call or exits out of th...

iPhone: Can I get an image picker to have the documents folder as its source

It looks like I cant create an album for my picture producing app in the photo library... so what I was going to do is save the images to the documents folder for my app, which I think should be easy enough. The issue though is that the image picker seems to only allow you to pick saved images or photo library as the source, and I would...