2011-12-13 78 views
-3

我想追加一个字符串的日期是m_textdate.text =日期有我的当前日期,我想附加这个NSString * strRR = [NSString stringWithFormat:@"BibleApp_Notes_%@.html", title];我从上面的代码得到BibleApp_Notes_genisis1.3.html .title是包含genisis1.3的字符串,我想要这样的圣经BibleApp_Notes_genisis1.3 [20/05/1986 08:07:08] .html,但m_textdate.text与我有同样的日期,我只是想用我的移动代码来追加这个日期。 提前。如何在iPhone中追加字符串?

+0

可能重复[如何格式化或追加在iPhone的字符串?](http://stackoverflow.com/questions/8483495/how-to-format-or- append-a-string-in-iphone) – Caleb

+1

呃......“genisis”? –

回答

1

尝试以下操作:

NSString * strRR = [NSString stringWithFormat:@"BibleApp_Notes_%@ [%@].html", title, m_textdate.text];