Skip to content

Commit

Permalink
Re-organized the sample app code
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOliver committed Oct 6, 2023
1 parent a353a53 commit 17f9eec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TORoundedButtonExample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ - (void)viewDidLoad {
// Hide the tapped label
self.tappedLabel.alpha = 0.0f;

__weak typeof(self) weakSelf = self;
self.button.tappedHandler = ^{
[weakSelf playFadeAnimationOnView:weakSelf.tappedLabel];
};

// Uncomment this line for an attributed string example
// self.button.attributedText = [[self class] makeExampleAttributedString];

// Uncomment to apply an alpha value to the button
// self.button.tintColor = [self.view.tintColor colorWithAlphaComponent:0.4];

__weak typeof(self) weakSelf = self;
self.button.tappedHandler = ^{
[weakSelf playFadeAnimationOnView:weakSelf.tappedLabel];
};

// Uncomment to have the button shrink to wrap the text
// [self.button sizeToFit];
}
Expand Down

0 comments on commit 17f9eec

Please sign in to comment.