5
Estoy usando Xcode 4.2 storyboard. Estoy atrapado en esta concatenación. ¿Es esto correcto? ¿Dónde en el código tengo que modificar? en realidad quiero mostrar una nueva tabla vista dependiendo de la variable pasada ("fila") de la tabla vista anterior. Cualquier ayuda apreciada.stringByAppendingString
self.newrow =row;// row is the variable passed from previous tableview
NSString *urlString = [NSString stringWithFormat: @"http://ipaddress/iphone.php?id="];
NSString *[email protected]"";
urlStr=[urlString stringByAppendingString:newrow];
NSURL *url = [NSURL URLWithString:urlStr];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL: url];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[connection release];
[request release];
es 'self.newRow' una cadena ?? Si no (parece más probable que sea un 'int') quizás deba usar' [NSString stringWithFormat: @ "http: // whatever? Id =% d", self.newRow] '. –
Además, ¿qué error estás obteniendo ??? –
¿Qué problema/error estás teniendo? ¿Has intentado registrar tu cadena? ¿Está implementando las rellamadas NSURLConnection? – bryanmac