テーブルに頭をぶつける準備ができています。あるいは、私が疲れすぎているのかもしれません。誰か別の目を貸して、以下の最後の if ステートメントでエラーが発生する理由を教えてもらえますか?
どうもありがとう
#import "BAWelcomeViewController.h"
@interface BAWelcomeViewController ()
@end
@implementation BAWelcomeViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)viewWillAppear:(BOOL)animated {
if (![PFUser currentUser]) {
[self performSegueWithIdentifier:@"Show Login View" sender:self];
return;
}
[self performSegueWithIdentifier:@"Show Main View" sender:self];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender {
if ([[segue identifier] isequaltostring:@"Show Login View") {
//do something here
}
}