Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-20-2009, 06:19 AM   #9 (permalink)
thomaswguy
Registered Member
 
Join Date: Oct 2009
Posts: 11
thomaswguy is on a distinguished road
Default onwards

Quote:
Originally Posted by mlo View Post
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
thomaswguy is offline   Reply With Quote
 

» Advertisements
» Online Users: 501
22 members and 479 guests
alexonit, Apptronics RBC, Bryan1, coolman, David Phan, denicevh18, devno, Djaker, dljeffery, Droverson, Duncan C, Hassasin, HemiMG, ilmman, KennyChong, Kirkout, mer10, mpsventas, Newbie123, newprogrammer, Speed, t_hgezhong
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,315
Threads: 93,989
Posts: 402,427
Top Poster: BrianSlick (7,978)
Welcome to our newest member, alexonit
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:48 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.