我的职能如下,可证实另一职能的恢复(恢复安保部职责的搜索功能)。 在我执政时,如果说不使用这一条款,那么,由于国家安全记录仪(@“功能回归:%@”,诺瓦卢尔)出现在康索尔。
Can someone tell me if there s any mistake in the code? (For sure there is a mistake!)
- (void) buttonPushRandomViewController1 {
UIViewController *randomViewController = [self randomViewController3];
NSString *novaurl = [self searchPlaces];
NSLog(@"Function Return: %@",novaurl);
if (novaurl == @"OK") {
randomViewController.title = @"Resultado";
[self.master pushViewController:randomViewController animated:YES];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:novaurl]];
[webView loadRequest:request];
}else if (novaurl == @"ZERO_RESULTS") {
UIAlertView *zeroResults = [[UIAlertView alloc] initWithTitle: @"Ops!" message: @"Sorry, nothing found!"
delegate: self cancelButtonTitle: @"OK" otherButtonTitles: nil];
[zeroResults show];
[zeroResults release];
}
}
提前感谢!