objective c - Facebook Login Button Alignment iOS -


I want some help in programmatic aligning the Facebook login button here code that Facebook SDK gives you and it Puts in the center at the top of the storyboard.

I want to align it to a special place at the bottom of my storyboard. This is where SDK holds it: ...... here is the place where I have to keep it:

Thanks guys.

  // Facebook login button FBLoginView * LoginView = [[FBLoginView alloc] init]; // Align the button in the horizontally login center view.frame = CGRectOffset (loginView.frame, (self.view.center.x - (loginView.frame.size.width / 2)), 5); [Self.view addSubview: loginView];    

Try setting the center property instead of the frame Similarly I do it.

  loginView.center = CP Pointsmake (Confidence / 2, Self Height - 40);    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -