This repository was archived by the owner on Oct 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
GravatarImageDemo/GravatarImageDemo Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -16,34 +16,33 @@ @interface ViewController ()
1616
1717@implementation ViewController
1818
19- - (void )viewDidLoad
20- {
19+ - (void )viewDidLoad {
2120 [super viewDidLoad ];
2221
2322 self.title = @" RFGravatarImageView" ;
2423
2524 _imageView = [[RFGravatarImageView alloc ] initWithFrame: self .view.bounds];
26- [_imageView
setEmail: @" [email protected] " ];
27- [_imageView forceDefault: YES withDefaultGravatar: DefaultGravatarMysteryMan];
28- [_imageView setSize: 1024 ];
25+ _imageView.
email =
@" [email protected] " ;
26+ _imageView.forceDefault = YES ;
27+ _imageView.defaultGravatar = RFDefaultGravatarMysteryMan;
28+ _imageView.size = 1024 ;
2929
3030 [self .view addSubview: _imageView];
3131
32- [_imageView loadGravatar ];
32+ [_imageView load ];
3333
3434 UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (tapToLoad )];
3535
3636 [self .view addGestureRecognizer: tapGesture];
3737}
3838
3939- (void )tapToLoad {
40- [ _imageView setEmail: @" rexcfinn @gmail.com" ] ;
41- [ _imageView setForceDefault: NO ] ;
40+ _imageView. email = @" rudd.fawcett @gmail.com" ;
41+ _imageView. forceDefault = NO ;
4242 [_imageView refreshGravatar ];
4343}
4444
45- - (void )didReceiveMemoryWarning
46- {
45+ - (void )didReceiveMemoryWarning {
4746 [super didReceiveMemoryWarning ];
4847}
4948
You can’t perform that action at this time.
0 commit comments