Table of Contents generated with DocToc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <QuartzCore/QuartzCore.h> | |
// Form validation. You'll probably place this in your buttonClicked action | |
if ([textField.text isEqualToString:@""]) // checks if field is empty, add other form validation here | |
{ | |
textField.layer.cornerRadius = 8.0f; | |
textField.layer.masksToBounds = YES; | |
textField.layer.borderColor = [[UIColor redColor] CGColor]; | |
textField.layer.borderWidth = 1.0f; | |
} |
Made this button hover effect using CSS animations and gradients. Hope you like it!
A Pen by Chris Colvin on CodePen.