Skip to content

Instantly share code, notes, and snippets.

@Ibrahimhass
Created January 19, 2019 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibrahimhass/f7b08f85e87b0c430858593f46662bdb to your computer and use it in GitHub Desktop.
Save Ibrahimhass/f7b08f85e87b0c430858593f46662bdb to your computer and use it in GitHub Desktop.
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)middleButtonTapped:(UIButton *)sender {
[UIView animateWithDuration:0.5 animations:^{
sender.layer.cornerRadius = sender.frame.size.height / 2;
}];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment