Created
December 29, 2012 05:16
-
-
Save psobko/4404729 to your computer and use it in GitHub Desktop.
Resize FBLoginView on iOS SDK
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
- (void)resizeLoginView:(FBLoginView*)loginview | |
{ | |
for(UIView * view in loginview.subviews) | |
{ | |
if([view isKindOfClass:[UILabel class]]) | |
{ | |
view.frame = CGRectMake( view.frame.origin.x-23, view.frame.origin.y, view.frame.size.width/2, view.frame.size.height /2); | |
} | |
else | |
{ | |
view.frame = CGRectMake( view.frame.origin.x, view.frame.origin.y, view.frame.size.width/2, view.frame.size.height /2); | |
} | |
} | |
for(UILabel * label in loginview.subviews) | |
{ | |
label.font = [UIFont systemFontOfSize:12]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment