Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 7417ca6

Browse files
author
Carson Perrotti
committed
Demo changes
1 parent b568c73 commit 7417ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CNPPopupControllerExample/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ - (void)showPopupWithStyle:(CNPPopupStyle)popupStyle {
4242
NSAttributedString *lineTwo = [[NSAttributedString alloc] initWithString:@"With style, using NSAttributedString" attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:18], NSForegroundColorAttributeName : [UIColor colorWithRed:0.46 green:0.8 blue:1.0 alpha:1.0], NSParagraphStyleAttributeName : paragraphStyle}];
4343

4444
CNPPopupButton *button = [[CNPPopupButton alloc] initWithFrame:CGRectMake(0, 0, 200, 60)];
45-
button.titleLabel.textColor = [UIColor whiteColor];
45+
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
4646
button.titleLabel.font = [UIFont boldSystemFontOfSize:18];
4747
[button setTitle:@"Close Me" forState:UIControlStateNormal];
4848
button.backgroundColor = [UIColor colorWithRed:0.46 green:0.8 blue:1.0 alpha:1.0];

0 commit comments

Comments
 (0)