I have a grid of UIImageViews. The images names come from a sqlite3 database. When the user selects an image, I need to call a method which will set that image as the preferred one.
But to do this, this method must receive the id of the image in the database. Now, I have really no idea how I could achieve that a click on a specific UIImageView in the grid will call that method, and give the id as parameter.
Lets say I have this method:
- (void)makeImageAsDefault:(NSInteger)imageID { .... }
In InterfaceBuilder I have no chance to give the right parameter to the action method when an touch up event occurs. I guess I have to do something programatically here.
On the web, I would have created an URL that takes the parameter. How is something like this done on iPhone-OS?