我是Objective-C的新手,我遇到了一些问题。
我在官方的facebook教程之后在我的单一视图应用程序中实现了facebook auth。一切正常 - 我的按钮出现,我可以登录/注销。
但在连接到facebook之后我想打开另一个视图。所以我在我的构建器中创建了一个新的视图控制器,添加了一个新的segue(带有名字)
但是当我用performSegueWithIdentifier
调用它时,无法打开新的视图控制器。
所以,如果有人可以帮助我,那就太好了。 谢谢大家的提前;)
答案 0 :(得分:0)
#import "ViewController.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
FBSDKLoginButton *loginButton = [[FBSDKLoginButton alloc] init];
loginButton.center = self.view.center;
[self.view addSubview:loginButton];
[self performSegueWithIdentifier:@"Next" sender:self];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
答案 1 :(得分:0)
<!--Example Table-->
<table id="years">
<tbody>
<tr>
<td>1997</td>
<td class="century">20</td>
</tr>
<tr>
<td>2001</td>
<td class="century">21</td>
</tr>
</tbody>
</table>
按钮的代码在哪里?
如果我查看此代码,您希望在屏幕上显示按钮后立即转到下一个屏幕。
您可能想要回复一些Facebook的类接口。寻找Facebook SDK。