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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-27-2009, 07:17 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 109
Default Save Custom Colors

Hi,
in my app, I define custom colors using the initWithPatternImage method. I then want to save many of these colors (possibly up to 100) for use in another view controller. I thought I could write these colors into a mutable array, write the array to NSUserDefaults, then read the array on the other end. However, this does not seem to be working, because when I load the colors from the array, they always turn out to be white. How would I do this correctly? Thanks!
brian515 is offline   Reply With Quote
Old 03-27-2009, 08:06 PM   #2 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

That probably should work. Does it work with other colors built from rgb or built in colors like redColor?
PhoneyDeveloper is offline   Reply With Quote
Reply

Bookmarks

Tags
array, color, custom colo, nsuserdefaults, uicolor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 238
21 members and 217 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, FAED, fredidf, iDifferent, iph_s, JamesCahall, JasonR, mer10, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, timle8n1, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:13 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0