2014-10-20 62 views
-1

我是iOS新手。我的問題是我們如何從電子郵件中輸入雙引號「」?如何把字符串中的報價?

NSString* messageString = [NSString stringWithFormat: @"%@ does not apppear to be valid email address.Do You Want sent Anyway?", email]; 
UIAlertView *alertView =[[UIAlertView alloc]initWithTitle:@"Invalid adress" message:messageString delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil]; 
[alertView show]; 
break; 
+2

使用本>'\ 「''例如\」 無效電子郵件\「' – MaappeaL 2014-10-20 04:50:04

回答

1

使用此代碼

NSString* messageString = [NSString stringWithFormat: @"\"%@\" does not appear to be valid email address.Do You Want sent Anyway?", email]; 
+0

TNKS ........... – 2014-10-22 05:06:34