• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cahnging bgColor of a UIView not working.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cahnging bgColor of a UIView not working.


  • Subject: Cahnging bgColor of a UIView not working.
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 29 Jul 2009 11:29:10 +0200

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cahnging bgColor of a UIView not working.
      • From: Gustavo Pizano <email@hidden>
  • Prev by Date: Re: NSOutlineView column sizing problems
  • Next by Date: Re: Cahnging bgColor of a UIView not working.
  • Previous by thread: Re: NSOutlineView column sizing problems
  • Next by thread: Re: Cahnging bgColor of a UIView not working.
  • Index(es):
    • Date
    • Thread