0

我是 ios 开发的新手,所以我想添加一个用于登录 facebook 的按钮,而不是使用 FACEBOOK sdk 按钮中的默认按钮..

提前致谢..

4

1 回答 1

0

As written here on step 1, you can use a normal UIButton for the login, so you simply have to add style to that button. Eg:

UIButton *login_button = [UIButton buttonWithType:UIButtonTypeCustom];
[login_button setFrame:CGRectMake(80.0, 210.0, 160.0, 40.0)];
[login_button setTitle:@"Login!" forState:UIControlStateNormal];
[login_button setBackgroundColor:[UIColor greenColor]];
[login_button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[self.view addSubview:login_button];
于 2013-07-29T09:19:55.317 回答