Hello.

Im trying to change the color of a UIView programatically but something is wrong.


Im pressing a button which triggers an IBAction, which does the following:

[[self view] setBackgroundColor:[UIColor colorWithRed:20.0 green:10.0 blue: 30.0 alpha:1.0]];

but when I press the button the program blows with an NSInvalidArgumentException..

what am I doing wrong?


thanks

Gustavo Pizano



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to