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 08-24-2009, 01:53 PM   #7 (permalink)
losingSkillz
iPhone Developer
 
Join Date: Aug 2009
Posts: 64
losingSkillz is on a distinguished road
Default

Quote:
Originally Posted by gunther View Post
you can make the dictionary in a separatte class..for example Mydic and in MyDic you make the NSdictionary for set and get the rgb..

But i think what if you call this for others views you can make a plist and set and get this values more easy. and the advantage is what you can use the same data in all views..

Only need what make a class for sharing the code read a write plist and import to the view controller.
thanks for all the help. but i still have some other questions.
1:is there anyway to set the colour of the font of a button programmatically using [UIColour colourWithRed:redValue green:greenValue blue:blueValue];?
i know you can do this with a label but does it work for buttons too?

2:for the NSMutableDictionary, is it possible to have more than one object for one key? for example can you use something like this?:

Code:
[dictLabelFont setObject:[NSString stringWithFormat:@"%d", intRedColour] forKey:@"red"];
[dictLabelFont setObject:[NSString stringWithFormat:@"%d", intGreenColour] forKey:@"green"];
[dictLabelFont setObject:[NSString stringWithFormat:@"%d", intGreenColour] forKey:@"blue"];
actually for the second question i meant to say can you can store more than one object/key in a NSMutalbeDictionary right?
thanks for all of your help :-)

Last edited by losingSkillz; 08-24-2009 at 01:58 PM. Reason: wrong code
losingSkillz is offline   Reply With Quote
 

» Advertisements
» Online Users: 697
23 members and 674 guests
ADY, Arty Tales, baja_yu, BrianSlick, clarky07, dcool, dljeffery, e2applets, Evich, freec, GHuebner, gogoman, IOOIOIO, JmayLive, linkmx, Paul Slocum, poke, reficul, taylor202, Thompson22, TunaNugget, volcomCE, Yoshkow
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,171
Threads: 93,916
Posts: 402,131
Top Poster: BrianSlick (7,966)
Welcome to our newest member, arlethatm26
Powered by vBadvanced CMPS v3.1.0

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