Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Can't get button colours to work #5

Closed
percysnoodle opened this issue Feb 21, 2013 · 4 comments
Closed

Can't get button colours to work #5

percysnoodle opened this issue Feb 21, 2013 · 4 comments
Assignees
Milestone

Comments

@percysnoodle
Copy link

Hi,

I'm having a problem getting button colours to work. Based on the demo project, I think I should be able to style buttons using titleColor:normal, but it doesn't seem to work. I've put up an example at https://github.com/percysnoodle/uissbuttondemo - I'm using this UISS:

{
    "UBDView" : {
        "backgroundColor" : "#999999"
    },

    "UILabel" : {
        "textAttributes" : {
            "textColor" : "purple"
        },
        "backgroundColor" : "clear"
    },

    "UIButton" : {
        "backgroundColor:normal" : "blue",
        "backgroundColor:highlighted" : "red",
        "titleColor:normal" : "yellow",
        "titleColor:highlighted" : "green",
    }
}

So I expect my buttons to be blue with yellow text. But what I see is this:

Screen Shot 2013-02-21 at 10 29 26

Am I using UISS wrongly, or is there an issue with button colours?

@ghost ghost assigned robertwijas Feb 23, 2013
@robertwijas
Copy link
Owner

Which version are you using?

@percysnoodle
Copy link
Author

Hmmm... annoyingly I don't seem to have added the Podfile to github, but I specified "~> 1.0", which I'd have thought would give me 1.0.9; but trying it now I get 1.0.0. It doesn't look like any of the later versions have been pushed to the CocoaPods specs repo. Do you have push access to that repo, so that I could retest with 1.0.9?

@robertwijas
Copy link
Owner

1.0.9 is pre 1.1 version which has not been published via CocoaPods yet.
I will configure 1.1-beta today so you'll be able to get it easily via CocoaPods. I'll let you know.

The final 1.1 will be published next week.

@robertwijas
Copy link
Owner

Easier solution would be to specify your dependency like this:

pod 'UISS', :head

This will give you the last git version.
You should change it to:

pod 'UISS', '~> 1.1.0'

when 1.1 is released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants