iphone

Getting an image representation of the camera preview in UIImagePickerController

When I use the standard [view.layer renderInContext:UIGraphicsGetCurrentContext()]; method for turning views into images on the iPhone camera modal view, all I get is the controls with black where the camera preview was. Anyone have a solution for this? Speed is not an issue. ...

How to transform Navigation Bar and Navigation Controller in Landscape mode

Hi I am developing a game in which I am using Landscape mode I have total 4 view. 2 views are properly coming in Landscape mode. But in third view I have UITable and Navigation bar. I can able to rotate table in landscape mode but not able to transform Navigation bar and Navigation controller. Navigation bar and Navigation Controller al...

Can we use the ABPeoplePicker view for something other than selecting a single contact?

I'm attempting to implement a 'better' address book for IPhone and I just want to make additions to Apple's current address book interface. Do I have to re-implement everything from scratch (contacts divided by letter headers, all alphabet buttons on the right, and so on) or is there a way I can somehow use and modify the PeoplePicker vi...

iPhone RSS thumbnail

I have a simple RSS reader. Stories are downloaded, put into a UITableView, and when you click it, each story loads in a UIWebView. It works great. Now though, I'd like to incorporate an image on the left side (like you'd see in the YouTube app). However, since my app pulls from an RSS feed, I can't simply specify image X to appear in ro...

Which technologies/concepts do you suggest I learn before creating an iPhone game?

Sorry if this is a broad question, but other than Objective-C, Cocoa, and OpenGL ES, what technologies or concepts would you suggest I read up on before writing a game for the iPhone? I'm a beginning game developer and need all the help I can get :) ...

Oolong, SIO2 or commercial Game engine for 3D iPhone Games newbie?

I'm trying to pick between the Oolong and SIO2 free iPhone game engines for my first game programming project. I have some Cocoa experience and many years of C++ including relatively low level 2D graphics and developing Quicktime plugins but only minor OpenGL exposure. Which engine would be easiest to learn and most productive for someon...

Reserving Disk Space on iPhone

I want to be able to 'reserve' a set amount of disk space on my iPhone for my particular application. Before I get flamed I should add this is NOT for a public application. I assume the simplest way to do this is to actually create blocks of files up to the space I wish to reserve and then delete and use these blocks as necessary. Is t...

How to handle a translation Matrix in an inverted Y axis point of view

My usercase is an iphone application where I do an animation on the scale, rotation and translation of an image. So, I concat everything and feed it to the transform property, but there is one problem: Since my images vary in size, it is a problem to position them correctly. I'm used to an inverted y axis coordinate system, so I want m...

How to pull out strings from array on iPhone?

I want to pull out a string from an array by index. e.g array with object: @"Hello", @"World" How to get @"World" from it? I use array[1], but it seems not work. ...

When should one use UITableView reloadData ? And defect associated ;)

Hi, I have built a UITableView with custom cells which each contain 5 textfields (a bit like a grid). The cells can be edited inline (no need to go in a separate view). I am faced with some wierd defects when it comes to using reloadData. my table footer is dynamic (calculates a value based on the cells). Should I call reloadData eve...

NSMutableArray gets corrupted

Hi, I'm doing an iPhone application which uses a navigation control to browse through some data. This data is stored in a sqlite database and I have a class which gets it and returns it in a NSMutableArray of NSStrings. The problem is that in the first screen of the navigation everything works prefectly, but in the second screen (anoth...

How to concatenate char and string on iPhone?

I want to add some marks to separate some strings. How to add a char to a string? e.g. add '\x01' to "Hello", add '\x02' before "World" and add '\x03' after "World". So I can create a string "\x01 Hello \x02 World \x03" which has some separate marks. ...

When to release a NSString in iPhone

I have the following method -(NSMutableArray *) getPaises { NSMutableArray * paises; paises = [[NSMutableArray alloc] init]; while( get new row ) { NSString *aPais = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)]; [paises addObject:aPais]; } return paises; }...

What do I have to do to test my iPhone / iPod App on my iPod Touch (not iPhone)?

I'm developing an App for my iPod Touch that doesn't use the iPhone-Special-Hardware like phone or cam. I want to test it on my iPod touch. I am already a registered developer (free account, no fee). What are the steps to get my app working on my iPod touch? ...

How to initialize an NSObject's subclass on iPhone?

I want to write some methods in a class so that other classes can call these methods using [instance methodName:Parameter]. If the class is a subclass of UIViewController, I can use initWithNibName to initialize it. But I want to write the methods in an NSObject's subclass, how can I initialize it? ...

How to transfer values between classes on iPhone?

I want to send a string from one class to the other: 1) In class1, I add a property to hold the string: @property (nonatomic, retain) NSString *str; 2) and a method to send back a string: -(NSString *)sendBackStr:(NSString *)strURL { NSString *str = [[NSString alloc] stringWithString:strURL]; return str; } 3) In class2, I...

Aligning UIToolBar items?

I have three UIBarButtonItem created as below. They align left and I'd like to align center so there isn't a gap on the right side. I don't see an align property on UIToolBar. Is there another way to accomplish this? //create some buttons UIBarButtonItem *aboutButton = [[UIBarButtonItem alloc] initWithTitle:@"About" style:UIBarButton...

What is the difference between iPhone Developer Standard Program (99 USD) and Enterprise Program (299 USD)?

Can someone point out what is the difference? And what for do we actually pay so much money, when supporting the iPhone with our hard work? Is it right that I have to have the Enterprise Membership (299 USD), when I want to sell Apps for money? Or can I also sell Apps when I "only" have the cheaper Standard Membership (99 USD)? Is the...

Is there a risk that Apple will not accept me as an applied iPhone Developer (with paid membership)?

What does it mean that I have to "apply"? Can day say: "No, we don't like your nose. Do something else!"? Did they do that in the past? I've been investing now two full months worth about 20.000 USD on learning for iPhone programming, and I didn't apply yet... ...

Find the smallest value among variables?

Hi People :) I have from 4 up to 20 variables that differ in size. They are all of type float and number values. Is there an easy way to find the smallest value among them and assign it to a variable? Thanks ...