iphone

iphone function

hi i have a code like this i have defined the method goNext but still m getting a warning "'viewcontrolller' may not respond to 'goNext'". how'll i solve this. - (void)imagePickerController:(UIImagePickerController *)pickers didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { statements; ...

iphone sdk - why is the video returned not full res?

im developing an app for the iphone and im able to get a video using a UIImagePickerController the problem is that the video thats returned by the UIImagePickerControllerMediaURL is not full resoultion -- its only 480 x 360 as opposed to 640 x 480 like the videos that sync to my itunes. -please someone tell me this is not a limitation o...

App not visible on iPod after installing through an ad hoc profile

I have build my app with and ad hoc provisioning profile/distribution certificate pair following the instructions from developer program portal. Then I send the binary (.app file) and provisioning profile to one of my peer. He drag and drop the .app and .mobileprovision files on iTunes and sync his iPod Touch. The iTunes shows the appl...

How can I add the alpha channel of image A to the alpha channel of image B?

I have two images. One of them is just plain white and has some areas with alpha transparency. It is intended to be a mask for making another image transparent. The other image, full colored and also PNG, has no alpha applied anywhere. So I want to add the alpha values of the mask image to the alpha values of the other. Both images have...

How do you obscure text in a password field in an iPhone Application?

Hello I have a password field in my application (UITextField). When user enters text in the field, I want it to display * instead of the text they entered. I have tried using the UIControlEventEditingDidEnd of UITextField but it only shows one * at the end when editing but I want it to display the *s as soon as any text is entered, lik...

Ping with iPhone SDK

I need to do a network ping in an iPhone app, but NSHost is an unsupported framework for iPhone OS. Does anybody know of other tools or techniques to achive similar functionality? ...

how send file (txt/XML) from iphone to server(web or email)

Hi I want to send text or XML from iphone to another desktop machine. Is there any way so that I can use Email to send file as attachment or can send it by HTTP POST method. Please help me. ...

What's wrong with this randomize function?

I give it 0 and 400 and it returns me sometimes values above 400. That doesn't make sense. - (float)randomValueBetween:(float)low andValue:(float)high { return (((float) arc4random() / RAND_MAX) * (high - low)) + low; } that's actually a snippet I found on the net. Maybe someone can see the bug in there? ...

Is there a way to use functions in NSPredicate predicateWithFormat:

I have store with entities that have coords (x, y, z). I want to fetch them by using predicate like @"sqrt(x*x + y*y + z*z) < distance". Is there any way to do this? I've tried to do thi with predicateWithFormat: I even wrote a lot of code that looks like NSExpression * dxExpression = [NSExpression expressionForFunction:@"from:subtr...

Dynamically Changing UITableView's Contents

Hi, I have an NSURL object which gets data from my site, based on a variable entered by the user into the search bar. I split this data into an NSArray. Once I have done that I wish to display the data in a UITableView. My question is this. Is it possible to load the data into a UITableView dynamically? i.e. Program loads, no data s...

Making multiple versions of an iPhone application

I made an iPhone application, and now I would like to make multiple more versions of the same application with very slightly different functionality. I was wondering if anyone knew what the best way was to go about duplicating a project with as little decoupling (I think that's the right term) as possible. Maybe someone out there who h...

Guidelines for creating non-view objects in a XIB file

Interface Builder provides the ability to create non-view/controller objects in a XIB file. In the past I have used this feature to instantiate and wire-up small components that manage view components in the XIB and this seemed a fairly reasonable thing to do. However, I was wondering what other legitimate uses there are for this featur...

iPhone - copying a file from resources to Documents gives an error

Hi I am trying to copy an mp3 file from my Resources folder to a folder inside "Documents" folder of the app. On the simulator this works fine. But when I run it on a device, copying the files gives me this error Operation could not be completed. (Cocoa error 513.) The source and destinations paths are fine but I still cannot copy th...

Labels aligning in UITableViewCell

I use UITableView with cells created using UITableViewCellStyleSubtitle. Every cell's height is dynamically adjusted using the - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath delegate method. The problem you can see on the picture (note: image updated) How to set up align of textLab...

Which books and resources are good to learn OpenGL ES for iPhone OS quickly?

Maybe someone can recommend a book, great website or video training series for this? ...

Does openGL ES have trouble displaying text?

Someone told me that openGL is for graphic only, and that it's very bad at displaying good readable text. Is that true for openGL ES on iPhone OS? ...

iPhone - Have the keyboard slide into view from the right like when editing a note in Contacts

Hello, I'm looking for a way to slide the keyboard into view from the right, like what happens in the Contacts application when you edit a note. My problem is that when I call [someTextView becomeFirstResponder] in viewWillAppear, the keyboard immediatly pops up with no animation. And when I call it in viewDidAppear, the view first sli...

How to replace the company name in the template headers in Xcode?

When Xcode creates a new file, there's always something like this in the header: // Copyright 2009 __MyCompanyName__. All rights reserved. How can I change that? ...

How to build iphone apps using .Net on windows?

Are there any tools (emulators, IDE) which can help you develop iphone apps using .Net on windows and then publish to iTunes? ...

Is openGL ES on iPhone fast enough to render text that consists of little images?

For some very sophisticated graphics I am thinking about making a fontset out of image files. Do the openGL ES experienced people here think that this would be okay on iphone, or does performance go down quickly with this? The amount of text to be displayed is not that much. At max I would say as long as my question text here, for examp...