Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-07-2009, 04:23 PM   #3 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

If this is something like a solitaire game then making each card its own view will simplify things for you.

I wrote a sliding tile puzzle game as my first app. It has a 5 x 5 grid of tiles. I made each tile its own view and it worked out well. If you don't make each card its own view then you'll be duplicating some of the functionality of UIView for each card. Things l like hit testing and animations to move the cards are simple if they're individual views and complicated if you have to write them yourself.

The only issue I would think might come up is drawing performance. More than 20 or 30 views might take longer to draw or animate. However, you're probably only going to be manipulating one or a few views at a time so it shouldn't be a problem.

There's a class called CALayer that is reported to give faster drawing performance than a plain view but for your first app I'd recommend staying with UIView.
PhoneyDeveloper is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,314
Threads: 39,112
Posts: 171,494
Top Poster: smasher (2,576)
Welcome to our newest member, biggybillly
Powered by vBadvanced CMPS v3.1.0

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