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 04-19-2009, 12:22 PM   #7 (permalink)
eddietr
Registered Member
 
Join Date: Apr 2009
Posts: 536
eddietr is on a distinguished road
Default

Well, my point is that checking to see if a key exists in the prefs, and then writing a default value of that key if needed, etc, are things that you don't want to do inside drawRect. All that logic can be done when the view is loaded (or when the user selects something from the tableview).

That really should all be taken care of and an UIImage loaded from flash (like your last line you posted) *before* this point.

Then go about your custom drawing (and nothing else) in drawRect.
eddietr is offline   Reply With Quote
 

» Advertisements
» Online Users: 433
13 members and 420 guests
apatsufas, aziz, Duncan C, hzwegjxg, iLearnColors, kellyschoemaker, LegionMD, mehmood.memon, monu_rastogi, mraalex, Paxtorn, Robemtims, smithdale87
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,617
Threads: 94,086
Posts: 402,797
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kellyschoemaker
Powered by vBadvanced CMPS v3.1.0

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