I'm trying to save the positions of several images whom are inside my view. How can i store the coordinates of the images so that when the App launches the images are still at the same location?
If not many, you can use NSUserDefaults to save each individual point. You'll want to first convert the point to an NSString using NSStringFromCGPoint( thePoint ). And later, when you read the string from NSUserDefaults, there is a corresponding method to convert a string back to a CGPoint.
If you are saving a lot of points, it will probably be easier to do what is described above, but add each of the strings to an NSArray and then save the array to NSUserDefaults.
Are we talking about ImageViews or UIImages, because the latter don't have position, they're just images. If you have image views then you can save the value pairs of .frame.origin.x and .frame.origin.y, then reload on launch and restore the position.
We are talking about 20 UIImageViews. I placed them within my viewDidLoad method like:
image1.center = CGPointMake(381, 637);
etc.
A user is able to drag is UIImageView by means of the touchesmethod, so the coordinates change after dragging. I'd like to save those new coordinates of the UIImageViews.