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-25-2009, 01:02 PM   #10 (permalink)
jsd
at this moment
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 900
jsd is on a distinguished road
Default

Quote:
Originally Posted by losingSkillz View Post
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?
UIButton setTitleColor:forState:

Quote:
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 :-)
yes, you can store any number of objects/keys in a NSMutableDictionary.

btw, if you want to store float values in a dictionary, you might consider using NSNumber numberWithFloat: instead of converting to/from strings all the time.
jsd is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,172
Threads: 93,917
Posts: 402,134
Top Poster: BrianSlick (7,966)
Welcome to our newest member, myrtaah95
Powered by vBadvanced CMPS v3.1.0

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