Quote:
Originally Posted by mlo
I'd probably use a UiImage for each dot and create it via code for each new instance, you can then use coregraphics to draw it (ie cgrect etc) at the given coords and store it's name and x,y coords in an array, you will need a bitmap for the image.
Now if you know the maximum number of dots you are going to allow then you could create them in IB and set up the properties and outlets ahead of time, then make them hidden until you need a new one then make the next available one visible in your code.
Not anywhere near my Mac atm so that's as much as I can think of.
icodeblog has some gaming tutorials that show you how to move round a UiImage, might be worth a look as well.
|
Ok thanks Mlo... if the route i am trying to take now does not work out i will have a look at using images that are already hidden in IB.
Thanks again for the code Brix i am taking a look at it now and seeing what i can do

although it looks like it may take a long time !
Cheers again.
Tom