2014-10-20 2 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

ответ

1

Используйте этот код

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

TNKS ........... –

Смежные вопросы