When I selected the table row, nothing happened it didn’t go to ContentController and I can’t find the UILabel that I declared on ContentController.h when I want to link it to resultLabel
When I selected the table row, nothing happened it didn’t go to ContentController and
Share
I have checked your code but with the following mistakes:-
1) navigation Controller is not present but you are calling
[self.navigationController pushViewController:detailview animated:YES];
2)In the contentController you have not given the iboutlet for uilabel. Hence no mapping is done.
remedies
1)use the presentmodelviewcontroller if you want to go from one view to another
syntax:
[self presentModalViewController:detailview animated:YES];
or
declare the uinavigation controller in the appdelegate and lauch the navigation controller inside the function didFinishLaunchingWithOptions in appdelegate.m
2) IBOutlet UILabel *resultLabel;
@property (nonatomic, retain) IBOutlet UILabel *resultLabel;
replace your code with this.
*Note when ever you try to add Library objects make the iboutlet which is used for doing mapping between the object variable and object.