Skip to content

NSInvalidArgumentException #180

@Hatom1K

Description

@Hatom1K

I use FUIButton without IB so i make that in my .m:

self.boutton_commencer.buttonColor = [UIColor carrotColor];
self.boutton_commencer.shadowColor = [UIColor alizarinColor];
self.boutton_commencer.shadowHeight = 3.0f;
self.boutton_commencer.cornerRadius = 6.0f;
self.boutton_commencer.titleLabel.font = [UIFont boldFlatFontOfSize:16];
[self.boutton_commencer setTitleColor:[UIColor cloudsColor] forState:UIControlStateNormal];
[self.boutton_commencer setTitleColor:[UIColor cloudsColor] forState:UIControlStateHighlighted];

And i my .h i set that:

@Property (strong, nonatomic) FUIButton *boutton_commencer;

But when i test this code i get this error:

2015-04-21 19:41:10.833 WeProov[85487:6502034] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIColor carrotColor]: unrecognized selector sent to class 0x3bc00c8'

Thanks you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions