Hi All
I'm just after some advice. I am working on an app that has images on the screen that a user can drag around.
I have come from a realbasic background, so my approach is as follows:
Created an object (dragObject) with properties ( uiimage, cgpoint(for the coordinates) and cgsize ).
Created an array (dragArray) of these properties
Subclassed the UIView that has a property UIImage called mainImage.
When I handle the drag, mainImage gets redrawn using dragArray in a for loop.
The UIView then gets redrawn in drawrect with mainImage.
Is this the best approach, or should I have an array of UIImageViews, where all the images on screen are handled by their own image view.
I am new to IOS so just some general advice would be appreciated
Regards
Paul
I'm just after some advice. I am working on an app that has images on the screen that a user can drag around.
I have come from a realbasic background, so my approach is as follows:
Created an object (dragObject) with properties ( uiimage, cgpoint(for the coordinates) and cgsize ).
Created an array (dragArray) of these properties
Subclassed the UIView that has a property UIImage called mainImage.
When I handle the drag, mainImage gets redrawn using dragArray in a for loop.
The UIView then gets redrawn in drawrect with mainImage.
Is this the best approach, or should I have an array of UIImageViews, where all the images on screen are handled by their own image view.
I am new to IOS so just some general advice would be appreciated
Regards
Paul