iphone

Performance problems on iPhone using simple graphics

We're working on a couple simple games and we have some performance problems that we keep running into, and I was curious if it was a code issue or a "we're using the wrong objects" issue. Our games are basically simple ones that work as follows: We have a custom view that we load, and a custom object that is our game engine. The view ...

How do I prompt a user to select an image on the iPhone?

I would like to allow the user to select one of several pre-supplied images. Is there a standard way to do this? ...

What image libraries have been ported to the iPhone?

I am researching iPhone image libraries. I am looking for a lightweight image library that will compile on an iPhone. Have any libraries such as ImageMagick been ported? What image libraries would be best suited for the iPhone? The image library should be suited to do black & white, sepia tone, saturation filters, and more sophisticat...

UINavigationItem back problem

i have a UINavigationController in my viewcontroller,and after pushing another viewcontroller from current viewcontroller,when i press the back button on navigation bar, it return to previous view,however the previous data in the first view still there, how can i reset the first view data as like call the viewDidLoad function again when ...

iPhone - UITextAlignmentRight in UILabel cuts some part of text

I am trying to display two labels on UITableViewCell, one with left-aligned text and another with right-aligned text. The cell with right-alignment of text is cut on the right by 1-2 pixels. I tried increasing the width of the UILabel but it does not make a difference. The text appear fine in the simulator but on the device it gets cut ...

function name scoping in c

how does function name scoping work across multiple c files? i'm porting a standard gnu toolchain project to iPhone OS, and using XCode to do it. the code builds through make, but not through xcode. when building through xcode, the linker complains that the same symbol (function) is defined in two objects. the code has two distinct sou...

uiwebview double tab event

hai any one help me that i have one obstacle, i have implemented swipe navigation in my web-based application. For that i have place a uivew over a uiwebview. By way of using this technique i have get the uiview touch event and make the impact action over its super view as uiwebview. In that i got an runtime exception while the user do t...

use more then one sound in my iphone application using cocos2d

avc = [[MPAVController sharedInstance] avController]; //avc is AVController NSString *path = [[NSBundle mainBundle] pathForResource:@"Sound" ofType:@"wav"]; id feeder = [[MPArrayQueueFeeder alloc] initWithPaths:[NSArray arrayWithObject:path]]; [avc setQueueFeeder:feeder]; [avc play:nil]; [feeder release]; NSTimer *sound =...

what is a good c compiler

i'm using windows xp what would be a good c compiler? i want to learn c so that i can better understand the objective-c language for the iphone. i have a great background in php so hopefully something will make sense ps: what sections should i put more focus on when learning c in getting prepared for objective-c? thanks Duplicate: ...

Multiple Window/ view in a Window based app in iphone!

Is it possible to create multiple view or window in a (Window based) iPhone app ? If possible Plz tell me. ...

Do any functions fire when going "back" to a view with a UINavigation

I know its probably a really simple thing, but I need to reload some data if some changes have been made from a subview and then the master view is returned to. ...

Toll-free bridging and memory management

My iPhone app needs to do some URL escape sequence encoding for a form parameter. The NSString stringByAddingPercentEscapesUsingEncoding as stringByAddingPercentEscapesUsingEncoding doesn't escape a lot. This is what I have -(NSString*)currentMessageUrlEncoded{ CFStringRef originalURLString = (CFStringRef) self.currentMessage; CFSt...

What do I have to learn to get done with a 3D racing game for the iPhone? What Tools do I need?

I know Java pretty well. I know now most of the Basics in Objective-C. I know nothing about Photoshop. I know how to use TurboCAD 10 Professional, so I do have some experience in 3D object modelling. Although not much. What do I have to learn step-by-step, to come to 3D game Development for iPhone? What Tools do I need? Which Books help...

How to disable input pad when pressing done on iphone?

I want to disable input pad on iphone when pressing 'done'. Any ideas about how to detect button press event? ...

"Program has exited with status 101"

Can someone give me a bit more information on this error please? Console only logs Program exited with status value:101. If you imagine I have a nsmutablearray: It holds TimeEntry objects: #import <Foundation/Foundation.h> #import "Constants.h" /* #define KTimeEntryInformationKey @"TEInformation" #define KTimeEntryFromKey @"TE...

iPhone: helpfulness of didReceiveMemoryWarning:

I'm at the part of my development process for tracking down crashing and memory leaks. As a strategy, do you put any NSLog messages or notifications of some such into didReceiveMemoryWarning: ? The documentation for this method is rather sparse. Is it accurate to say that before a crash will happen, the UIViewController will trigger that...

iPhone CoreLocation: How to get the most accurate speed

I'm experimenting with adding the GPS functionality to my iPhone app. It's a workout app that will be used while walking or running. So what I want to use GPS for is to show the speed that the person is moving in Mph and minute/mile. How should I configure the CLLocationManager so I get the best possible results? What should I set desir...

Arrange GUI elements in WPF in a similar way to the applications on the iPhone

I would like to arrange UIControls in WPF in a similar way to the applications on the iPhone. They should be positioned on a grid, but a user should be able to drag them somewhere else, after releasing the mouse button (or the finger in case of an iPhone) the selected UIControl should snap back to the next position in the grid. The other...

Converting OpenGL Primitives to OpenGLES

I'm trying to convert the following code from OpenGL 1.5 spec. to the OpenGLES 1.1 spec (num_x and num_y are passed into the function by arguments) ::glBegin(GL_LINES); for (int i=-num_x; i<=num_x; i++) { glVertex3i(i, 0, -num_y); glVertex3i(i, 0, num_y); } for (int i=-num_y; i<=num_y; i++) { glVertex3i(-num_x, 0, i); ...

What kind of odd behavior can occur during a memory leak on the iPhone?

Hi all, I've been able to replicate a bug consistently on an iPhone app I'm working on. The bug always follows as soon as my UIViewController's didReceiveMemoryWarning method gets invoked. Some of the issues I'm seeing are as follows: UITextField's text property niling out. The previous data in the UITextField is getting appended to...