0
I am relatively new to programming and I have come across an issue that is completely beyond me. Then I have a menu with 6 Uibutton set as Iboutlet in my viewcontroller. Each of these Uibutton calls a specific html internally hosted in the Xcode project. The point is that when using the prepareForSegue the Xcode by and simply ignore any action on the buttons.
This is my role prepareForSegue:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if (sender == self.Secretaria){
uptPiso1WebViewController *vc = (uptPiso1WebViewController*)segue.destinationViewController;
vc.url=[NSURL URLWithString:[NSURLRequest requestWithURL:[NSURL URLWithString:@"Piso1/Secretaria/vtour/tour.html"]]];
} else if (sender == self.sala){
uptPiso1WebViewController *vc = (uptPiso1WebViewController*)segue.destinationViewController;
vc.url=[NSURL URLWithString:[NSURLRequest requestWithURL:[NSURL URLWithString:@"Piso1/Sala105/vtour/tour.html"]]];
}
}
Once again I recall my inexperience and I apologise if my question may be too vague, but my last resort was really to try to find a solution here.
Regards
Are you using storyboard? the button is there too?
– Eduardo Urso