Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do an equivalent on php or perl's & in Objective-C [duplicate]

Tags:

objective-c

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?


1 Answers

[@"http://myurlc.co.uk/?no=" stringByAppendingString: tmpString]
  • NSString
  • Creating and Converting String Objects
like image 102
Paul Alexander Avatar answered Dec 06 '25 08:12

Paul Alexander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!