ios - Simple string concatenation in Objective C -



ios - Simple string concatenation in Objective C -

i have nsstring named 'you' value "this string!".

i want concat "123" in 'you', how can it?

i using code , giving error.

you=[you stringbyappendingstring:@"123"];

this code here working me

nsstring *s = @"avant"; s = [s stringbyappendingstring:@" - après"]; nslog(@"%@", s);

2012-01-13 11:48:59.442 tabbar[604:207] avant - après

so guess you bad pointer not nil , not nsstring think have.

have seek nslog on value before call?

objective-c ios nsstring string-concatenation

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -