Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

LT21j

macrumors newbie
Original poster
Apr 8, 2013
11
0
Hey I know there must be something I'm missing that should be obvious but I need some help because I can not find it. I have a class TeacherViewController and it inherits from UIViewController. But when I try to call the method performSegueWithIdentifier, I get an error saying: No visible @interface for 'TeacherViewController' declares the selector 'performSegueWithIdentifier:'.
Here's my code for TeacherViewController.m:

Code:
@interface TeacherViewController ()

@end

@implementation TeacherViewController
-(void) segueMethod
{
    [self performSegueWithIdentifier: @"toSchedule"];
}


Is there something obvious I am missing?
 
Last edited:
Hey I know there must be something I'm missing that should be obvious but I need some help because I can not find it. I have a class TeacherViewController and it inherits from UIViewController. But when I try to call the method performSegueWithIdentifier, I get an error saying: No visible @interface for 'TeacherViewController' declares the selector 'performSegueWithIdentifier:'.
Here's my code for TeacherViewController.m:

Code:
@interface TeacherViewController ()

@end

@implementation TeacherViewController
-(void) segueMethod
{
    [self performSegueWithIdentifier: @"toSchedule"];
}


Is there something obvious I am missing?


Suggestion: Do a search in the Xcode docs for "performSegueWithIdentifier". Take a look at the results. That should give you the answer you are after. (The documentation is a wonderful thing.)
 
There is no performSegueWithIdentifier: method. Perhaps you mean performSegueWithIdentifier:sender:?

YEPPPPPPPPP......I hate when I do stuff like that. Thank you for the help I wouldn't have seen that for an hour while I checked all the other things that could possibly be wrong.........
 
Hey I know there must be something I'm missing that should be obvious but I need some help because I can not find it. I have a class TeacherViewController and it inherits from UIViewController. But when I try to call the method performSegueWithIdentifier, I get an error saying: No visible @interface for 'TeacherViewController' declares the selector 'performSegueWithIdentifier:'.
Here's my code for TeacherViewController.m:

Code:
@interface TeacherViewController ()

@end

@implementation TeacherViewController
-(void) segueMethod
{
    [self performSegueWithIdentifier: @"toSchedule"];
}


Is there something obvious I am missing?
Are you sure TeacherViewController inherits from UIViewController, i.e. is a subclass of it? I don't see it, so maybe you've left something out.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.