specific number formater to a phone number
<p>I want to display the the number in the following format </p>

<p>and the format is "123-456-7890"</p>

<p>I am using </p>

<pre><code>NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterNoStyle];
[formatter setPositiveFormat:@"###-###-####"];
[formatter setLenient:YES];

amountField.text =[formatter stringFromNumber:[NSNumber numberWithDouble:[rxAlertResponse.rxPhoneNo doubleValue]]];
NSLog(@"%@",amountField.text);
</code></pre>

<p>i am using the above code to do that but the code is not reflecting ..... and the out put appear as 1234567890 only can any body help how to do that.</p>
