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
Post a Comment