Skip to content

[add] NSCopying protocol support to TNCheckBoxData class and subclasses#8

Open
k06a wants to merge 1 commit intofrederik-jacques:masterfrom
k06a:data-copying
Open

[add] NSCopying protocol support to TNCheckBoxData class and subclasses#8
k06a wants to merge 1 commit intofrederik-jacques:masterfrom
k06a:data-copying

Conversation

@k06a
Copy link

@k06a k06a commented May 2, 2015

I would like to use it this way:

TNCircularCheckBoxData *adminCan = [[TNCircularCheckBoxData alloc] init];
adminCan.identifier = @"adminCan";
adminCan.labelText = @"Only admin can invite members";
adminCan.labelColor = [UIColor colorWithWhite:74/255. alpha:1.0];
adminCan.labelWidth = 220;
adminCan.checked = YES;
adminCan.borderColor = [UIColor colorWithWhite:216/255. alpha:1.0];
adminCan.circleColor = [UIColor colorWithRed:0 green:200/255. blue:83/255. alpha:1.0];
adminCan.borderRadius = 30;
adminCan.circleRadius = 24;

TNCircularCheckBoxData *everyoneCan = [adminCan copy];
everyoneCan.identifier = @"everyoneCan";
everyoneCan.labelText = @"Everyone can invite members";
everyoneCan.checked = NO;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant