I created an application with the following code. It works great with iOS7, but when launching iOS8, the error below appears.
[UINavigationController setGoalName:]: unrecognized selector sent to instance 0x7964e2c0
My firstViewcontroller.m
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { GoalDetailsViewController *goalsDetailsViewController = segue.destinationViewController; NSLog(@"%@",[NSString stringWithFormat:@"%@", [[self.arrCategoryTitle objectAtIndex:indexPath.row] objectAtIndex:indexOfCategory]]); goalsDetailsViewController.goalName = @"Exercise Daily"; }
My GoalDetailsViewController.h
@interface GoalDetailsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> @property (nonatomic) NSString *goalName;
Thanks in advance.
source share