nsmutablearray - how to display an array with brackets in IOS? -


i have code gets email database , use emails parameters passed in nsdictionary.

nsmutablearray *newemails = [nsmutablearray alloc]init]; newemails = [[dbmanager getsharedinstance]emails]; //get emails db  nsdictionary *params =@{@"api_key":@"apikeyios",@"action":@"get-message",@"email":[newemails description]}; 

but returns this

params: {     action = "get-message";     "api_key" = apikeyios;     email = "(\n    \"yahoo@yahoo.com\",\n   \"gmail@gmail.com\"\n)" 

how can display arrays this:

["yahoo@yahoo.com", "gmail@gmail.com"] 

thanks responses :)

you should have use

@"email":newemails 

not

@"email":[newemails description] 

description method gives information element.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -