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,430
  • 5
  • 25
  • 48

2 Answers2

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

Look at Shortcuts in Objective-C to concatenate NSStrings

Community
  • 1
  • 1
Noel M
  • 15,812
  • 8
  • 39
  • 47