Hard to love

I am trying to learn Objective C and trying to love it rather than hate it but its not always easy.

Lets say you want to concatenate a couple of strings A and B.

After some googling I found the solution wasn’t:

A + B

or even:

[A concatenate: B]

but rather:

[NSString stringWithFormat:@”%@%@”, A,B]

Really?

And this was listed as the “nicer” solution.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *