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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-07-2009, 05: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
 

» Advertisements
» Online Users: 752
20 members and 732 guests
ADY, AppleSteve, batroid, chemistry, ckgni, clovisbear, Domele, JohniARivera, learningtocode, MozyMac, pratikchandak, qkstrk, shairah27, Stefanidxfl, Thompson22, Walbuzen, wildeman, williamWang, wrom567, zuil777
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,612
Threads: 89,140
Posts: 380,325
Top Poster: BrianSlick (7,110)
Welcome to our newest member, shairah27
Powered by vBadvanced CMPS v3.1.0

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