Skip to content

Instantly share code, notes, and snippets.

@psobko
Created December 29, 2012 05:16
Show Gist options
  • Save psobko/4404729 to your computer and use it in GitHub Desktop.
Save psobko/4404729 to your computer and use it in GitHub Desktop.
Resize FBLoginView on iOS SDK
- (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