views:

17

answers:

1

NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@"%@%@%@%@%@",[ConfigDB valueForKey:categoryURL], @"?ownerId=", 20,@"&userId=",64]];

can any one tell me wat wrong with this

+4  A: 

For numbers you are supposed to use %d, not %@.

@"%@%@%d%@%d"
willcodejavaforfood