Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiping Yang <[email protected]>
  • Loading branch information
ZhipingYang committed Jan 19, 2015
1 parent a74b8ea commit 88eac77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions UUChat/UUImageAvatarBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#import "UUImageAvatarBrowser.h"

static UIImageView *orginImageView;
static CGRect oldframe;
@implementation UUImageAvatarBrowser

+(void)showImage:(UIImageView *)avatarImageView{
Expand All @@ -18,7 +17,7 @@ +(void)showImage:(UIImageView *)avatarImageView{
orginImageView.alpha = 0;
UIWindow *window=[UIApplication sharedApplication].keyWindow;
UIView *backgroundView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
oldframe=[avatarImageView convertRect:avatarImageView.bounds toView:window];
CGRect oldframe=[avatarImageView convertRect:avatarImageView.bounds toView:window];
backgroundView.backgroundColor=[[UIColor blackColor] colorWithAlphaComponent:0.7];
backgroundView.alpha=1;
UIImageView *imageView=[[UIImageView alloc]initWithFrame:oldframe];
Expand All @@ -42,7 +41,7 @@ +(void)hideImage:(UITapGestureRecognizer*)tap{
UIView *backgroundView=tap.view;
UIImageView *imageView=(UIImageView*)[tap.view viewWithTag:1];
[UIView animateWithDuration:0.3 animations:^{
imageView.frame=oldframe;
imageView.frame=[orginImageView convertRect:orginImageView.bounds toView:[UIApplication sharedApplication].keyWindow];
} completion:^(BOOL finished) {
[backgroundView removeFromSuperview];
orginImageView.alpha = 1;
Expand Down
2 changes: 1 addition & 1 deletion UUChat/UUInputFunctionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ - (id)initWithSuperVC:(UIViewController *)superVC

//输入框的提示语
placeHold = [[UILabel alloc]initWithFrame:CGRectMake(20, 0, 200, 30)];
placeHold.text = @"Please input the content";
placeHold.text = @"Input the contents here";
placeHold.textColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.8];
[self.TextViewInput addSubview:placeHold];

Expand Down
4 changes: 2 additions & 2 deletions UUChat/UUProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ - (void)show {
centerLabel.text = @"60";
centerLabel.textAlignment = NSTextAlignmentCenter;
centerLabel.font = [UIFont systemFontOfSize:30];
centerLabel.textColor = [UIColor whiteColor];
centerLabel.textColor = [UIColor yellowColor];


edgeImageView.frame = CGRectMake(0, 0, 154, 154);
Expand Down Expand Up @@ -117,7 +117,7 @@ -(void) startAnimation
if (second <= 10.0f) {
centerLabel.textColor = [UIColor redColor];
}else{
centerLabel.textColor = [UIColor whiteColor];
centerLabel.textColor = [UIColor yellowColor];
}
centerLabel.text = [NSString stringWithFormat:@"%.1f",second-0.1];
[UIView commitAnimations];
Expand Down

0 comments on commit 88eac77

Please sign in to comment.