Permalink
Browse files

Change the frame size of the UIImageView in the middle of the HUD (im…

…age can now be larger) + change shadowOffset of the image.
  • Loading branch information...
1 parent 4ae0b4e commit 21669ae478a70c9cc0b0d12ecee3e04eab692678 @y0n3l committed Nov 23, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 LGViewHUD.m
View
@@ -54,12 +54,12 @@ - (id)initWithFrame:(CGRect)frame {
backgroundView.alpha=kHUDDefaultAlphaValue;
offset=frame.size.width/3.0;
- imageView = [[UIImageView alloc] initWithFrame:CGRectMake(frame.size.width/3.0, frame.size.height/3.0,
- frame.size.width/3.0, frame.size.height/3.0)];
- imageView.contentMode=UIViewContentModeScaleAspectFit;// UIViewContentModeCenter;
+ imageView = [[UIImageView alloc] initWithFrame:CGRectMake(frame.size.width/4.0, frame.size.height/4.0,
+ frame.size.width/2.0, frame.size.height/2.0)];
+ imageView.contentMode=UIViewContentModeCenter;
if ([imageView.layer respondsToSelector:@selector(setShadowColor:)]) {
imageView.layer.shadowColor=[[UIColor blackColor] CGColor];
- imageView.layer.shadowOffset = CGSizeMake(1, 1);
+ imageView.layer.shadowOffset = CGSizeMake(0, 1);
imageView.layer.shadowOpacity=1.0;
imageView.layer.shadowRadius=0.0;
}

0 comments on commit 21669ae

Please sign in to comment.