iphone

Loading a Reusable UITableViewCell from a Nib

I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a reuseIdentifier which means you have to create whole new instances of each cell at every cal...

Has anyone seen a tutorial of building a Cocoa Touch plug-in for Interface Builder

Does anyone know where I can find an example or a tutorial of building a Cocoa Touch plug-in for Interface Builder? ...

BlackBerry versus iPhone development

For those of you who know/experienced both BlackBerry and iPhone development, which platform did you prefer and why? I'm looking for things like debugging ability, API stability, UI development, deployment, IDE, documentation, etc. ...

iPhone Development Environment (from scratch)

I've developed on Windows and .NET for my whole career so forgive my ignorance on this one. What would be the steps to setup an iPhone development environment from scratch? Assume that I have nothing but electricity and an internet connection. What hardware and software would I need? I'm talking about the ideal environment here. If i...

How to develop distributable UI controls for iPhone?

I would like to develop a reusable UI control for iPhone. How should I go about doing this? When I say reusable I mean it's packaged in a dll (or whatever is used on iPhone platform) so it can be reused on multiple projects. ...

Static Libraries on iPhone device

I have two projects, a Cocoa iPhone application and a static library which it uses. I've tested it successfully on the iPhone simulator, but when I try to deploy it to my iPhone device I get (symbol not found) link errors. If I remove the dependancy of the library the project builds/runs fine. I have made sure all the build settings a...

iPhone (SDK 2.2): adusting playback volume while NOT actively playing music w/ AVFoundation?

So I have an app which plays many short sound clips. I need to know when the sounds are finished playing, and I need to use mp3s, so I'm using AVFoundation for the sound playback. When a sound is actively playing, and the user uses the hardware volume buttons, the playback volume changes. Problem is, the app is NOT constantly playing ...

iPhone NSNumberFormatter setFormat:

It appears as though NSNumberFormatter's method for setting custom formatters. setFormat: isn't available on the iPhone... SO this... crashes my app: NSNumberFormatter *lengthFormatter = [[NSNumberFormatter alloc] init]; [lengthFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4]; [lengthFormatter setNumberStyle:NSNumberFormat...

Text to speech on iPhone

Hi Is there any way we can convert text to speech in an iPhone app? Is it possible using the SDK? Thanks Are there any third-party TTS engines available for the iPhone? (AFAIK Acapela is not yet released) ...

What is the best way to track memory management while testing my iPhone App?

While developing my app I have come to realize that the majority of my app crashes have arisen from poor memory management. I understand I can print or log retain counts through NSLog (@"retain count is:%d",[myInstance retainCount]); But isn't there a better, less manual method? Possibly a visual representation of your objects and inst...

Any gotchas using my main iPhone for SDK development?

I own a total of one iPhones. I want to test my app on a real iPhone, which would mean allowing Xcode to get its grubby little protuberances on my only device. Is that wise? Are there any problems with using the same phone for testing and regular phone/music/other purposes? ...

Sending NSdata from device to desktop (mail)?

I have an app holding an array of instances of a class called SwimmingPool. At present my application persistence is dealt with by encoding everything into NSData and saving that to the iPhone. This is then reloaded everytime the app starts. I have a few friends populating their individual applications with instances of SwimmingPool. I...

C makefile to compile OpenGL project directly on iphone

Please direct me if this question has already been asked; I did a search on the topic unable to find yet. I am having trouble putting together a makefile that will take one or more .c OpenGL project files, uses apple-arm-darwin9 and OpenGL framework to compile into object directly on the iphone (using bash). For some reason whatever com...

One UITableView - Multiple DataSource, best design pattern?

This seems like a typical problem, but I have a UITableView that has identical behavior for two separate data sources. What is the best way of going about designing the class hierarchy to have as little duplication and if/else conditions? The view controller is going to do the same exact thing to both data sources, they're just unique in...

Multiple audio sounds in iPhone app?

I've gotten to play a single sound in the iPhone app I've started, but I now desire to play multiple sounds based on a button. To create a separate set of .m and .h files for each audio sounds, and then including them all, doesn't seem the most efficient way to tackle this in terms of coding...then again, I'm just starting out with Cocoa...

UIPickerView added to uitableviewcontroller.view won't rotate

Hello folks. I have a UIPickerView as subview in a UITableViewController, which I want to slide up in place when a certain row is clicked. I have implemented the necessary dataSource and delegate methods, but the pickerview acts weirdly. It acts as if it were mechanically jammed, it cannot rotate properly, it just moves a little. If I tr...

Subdirectories within an iPhone application

Is there a way to have directories within an .app? At the moment if I add a file into Xcode, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle. Just as an update, I discovered the command: /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp wh...

Launch an app from within another (iPhone)

Is it possible to launch any arbitrary iPhone application from within another app? For example in my application if I want the user to push a button and launch right into the Phone app (close the current app, open the Phone app), would this be possible? I know this can be done for making phone calls with the tel URL link, but I want to i...

launch a xcodeproj from terminal

i trying to build and compile my xcodeproj in command line and it is work now so is possible to launch the xcodeproject from terminal instead from the xcode ...

Larger alternative to default UITextfield font that looks GOOD

Hey there everyone. In interface builder i've created a UITextfield within a subclass of a UITableViewCell. The default font is just too small. If I make it bigger in interface builder it looks a bit ugly. Not as crisply rendered. I'd like a font similar to that used in the addressBook application when you edit a contact. The text thei...