我是 ios 开发的新手,所以我想添加一个用于登录 facebook 的按钮,而不是使用 FACEBOOK sdk 按钮中的默认按钮..
提前致谢..
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];