Quote:
Originally Posted by gunther
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 :-)