开发者

xcode adding two strings

开发者 https://www.devze.com 2023-02-13 12:32 出处:网络
i feel retarded for even asking this because its on the tip of my tongue metaphorically but here we go

i feel retarded for even asking this because its on the tip of my tongue metaphorically but here we go

i need to make an NSString called "HTMLData" out of two already existing strings called "summaryString" and "resizingString".

where resizingString is this (how would you make this into a string开发者_如何学Go?):

<meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1.0;'>

and the summary string is decoded xml

how do i do that?

im fairly certain its something like this but its not working

NSString *HTMLData = resizingString + summaryString;


NSString *HTMLData = [resizingString stringByAppendingString: summaryString];

Refer to the NSString Class Reference for more info and methods...

0

精彩评论

暂无评论...
验证码 换一张
取 消