Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
電話番号を 05XXXXXXXX の形式で分割し、「-」の間に入れる必要があります。たとえば、05X-XXXXXXX 市外局番と番号の間に「-」記号を入れるだけです
どうすればそれができますか?
ありがとう
This is the answer NSString *yourPhoneString=@"05XXXXXXXX"; NSMutableString *phoneNumber = [NSMutableString stringWithString:yourPhoneString]; [phoneNumber insertString:@"-" atIndex:3];