iphone

Understanding the memory consumption on iPhone

Hello! I am working on a 2D iPhone game using OpenGL ES and I keep hitting the 24 MB memory limit – my application keeps crashing with the error code 101. I tried real hard to find where the memory goes, but the numbers in Instruments are still much bigger than what I would expect. I ran the application with the Memory Monitor, Object ...

Best practice in cleaning up memory for iPhone apps?

I have seen sample source code around that uses different ways of releasing/dealloc'ing objects, so I was wondering which way is deemed the "best" one. A few options on -dealloc: 1) Release objects - (void)dealloc { [obj1 release]; [obj2 release]; [super dealloc]; } 2) Set objects to nil - (void)dealloc { self.obj1 =...

Stomp.framework iPhone linking. Anyone have experience?

Having trouble linking the Stomp.framework into an iPhone SDK application. http://code.google.com/p/stompframework/ I follow the instructions, adding it to the project, adding a Build Phase for Copying the Files, and including it via #import . I keep getting "image not found". Anyone try this and/or have a clear idea why? ...

Flash (or Silverlight) on the iPhone

I'm interested in developing applications on the iPhone and being a .NET & ActionScript developer I'm a bit scared from the learning curve of Objective-C Cocoa Touch programming. I know that Adobe has Flash player ready for iPhone and I think that Apple doesn't want it just for political reason. Is there any easy alternative to build a...

How can I fix the sound in my iPhone app for iPhone OS 2.2?

The sound for my iPhone app worked fine when I was running iPhone OS 2.0. I updated to OS 2.2 and now the sound only works with headphones. How can I make the sounds work for both headphones and the speaker again? ...

Is it possible to do streaming WiFi Communications on the iPhone?

I am looking to develop an iPhone application that will require point to point WiFi communications on an iPhone. I would like to use the WiFi interface and have the application stream between the phone and a WiFi Device. Does anyone have some experience with this? Is it even possible? I know there is a discovery application but I am ...

Which mobile system is for programmers?

I have been used my Palm Treo 650 for a few years. Now i am considering to buy a new one among iPhone, BlackBerry and Windows mobile. It seems windows mobile is best for me. Because I have experience with .NET development, and I think .net framework compact will not be too far away from my knowledge. Apart from calls, messages, I use it...

What is the best approach for building an iphone client for a rails app?

I have a fairly standard rails app and would like to be able to access the basic CRUD (Create, Update, Delete) operations as well as queries I have added, from an iPhone app. Rails provides the REST API for these operations more or less out of the box. What is the best approach to deal with the REST/XML part on the iphone, and are ther...

Are there any Open-source iPhone games around?

I'm looking for open source iPhone games for studing OpenGL ES and CoreGraphics, Some games I found (like Tris) is written for iPhone SDK 1.x, I think code for 2.x SDK is better, Any ideas? ...

Change Backlight Brightness on iPhone Programmatically

Does the SDK provide any way to change the brightness of the backlight, or turn it off temporarily? ...

New iPhone App - How to Choose which Xcode Template to Use?

In general I'd like to understand which templates to use when, when I'm making new iPhone apps. Could anyone offer some guidelines, tips, rules-of-thumb? Also, how much should I agonize over this? If I start off with the wrong one, can I add the missing pieces manually, is it hard? For reference here are the choices I'm seeing: Nav...

iPhone High Scores Framework?

I remember reading about a high scores framework for the iphone a while back. You could embed it into your app for easy high score management. Anyone know what I'm talking about? ...

Fixed labels in the selection bar of a UIPickerView

In the clocks application, the timer screen shows a picker (probably a UIPicker in UIDatePickerModeCountDownTimer mode) with some text in the selection bar ("hours" and "mins" in this case). (edit) Note that these labels are fixed: They don't move when the picker wheel is rolling. Is there a way to show such fixed labels in the selecti...

Iphone testing

Hi all, How can i test my iphone application on iPhone device before submittimg it to Apple Store. Thanks & regards, Khushi ...

Awake from sleep event on the iPhone?

Is there any way to detect if the iPhone wakes up from sleep while you're app is running? Eg: your app is running, the user locks the screen (or the screen auto locks) and some time later the user unlocks the screen and up pops your app. Is there some way to get an event at that point or detect it somehow? I've tried searching the Goog...

iPhone simulator and applicationWillTerminate()

When my app is run in the iPhone simulator, the delegate method - (void)applicationWillTerminate:(UIApplication *)application is only called the first time I hit the iPhone simulator's home button. After the home button is pressed and the app is launched again, hitting the home button does not call the delegate method. What is going...

Create provisioning profile in iphone application

HI all, How can i build provisioning profile in iphone application? Please help, urgent. Thanks & REgards Khushi ...

How to check if NSTimer has been already invalidated

Hi, I have a NSTimer object that I need to invalidate if a user taps on a button or if they exit a view. So I have: [myNSTimer invalidate]; inside my button handler and inside viewWillDisappear. If user taps on a button and then exists a view the app throws an exception because myNSTimer has already been invalidated. What I need to d...

UnitTesting on iPhone doesn't build

I am trying to perform some unit testing on the iphone but for some reason I cannot get it to build the executable I have downloaded TestMyApp from the Standford lecture slides and that compiles and runs perfectly. I have created a test project and even gone as far as to use the test code from the Stanford sample but for some reason dep...

Tab Bar Application With Navigation Controller

Hi I have a simple iPhone app that has a tab bar and 3 tabs. Each tab loads a a seperate nib with a corresponding controller. Each nib contains a tableview with some other controls for searching/filtering etc. What I would like (and cant seem to find an example of) is adding a navigation controller to the app so each nib (i.e. each tab...