3

Possible Duplicate:
How do I concatenate strings in Objective-C?

I have this:

[NSURL URLWithString: @"http://myurlc.co.uk/?no="]]

I basically want to do this:

[NSURL URLWithString: @"http://myurlc.co.uk/?no=" & tmpString]]

How would I do that in Objective-C?

Community
  • 1
  • 1
user393273
  • 1,412
  • 5
  • 25
  • 47

2 Answers2

1
[@"http://myurlc.co.uk/?no=" stringByAppendingString: tmpString]
Paul Alexander
  • 31,392
  • 14
  • 94
  • 149
-3

Look at Shortcuts in Objective-C to concatenate NSStrings

Community
  • 1
  • 1
Noel M
  • 15,312
  • 7
  • 37
  • 45