{"action":"created","issue":{"url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/43","labels_url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/43/comments","events_url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/43/events","html_url":"https://github.com/iziz/libPhoneNumber-iOS/issues/43","id":55964637,"number":43,"title":"NBAsYouTypeFormatter: Lacks support for handling changes to the middle of a phone number string","user":{"login":"dtrenz","id":639833,"avatar_url":"https://avatars.githubusercontent.com/u/639833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtrenz","html_url":"https://github.com/dtrenz","followers_url":"https://api.github.com/users/dtrenz/followers","following_url":"https://api.github.com/users/dtrenz/following{/other_user}","gists_url":"https://api.github.com/users/dtrenz/gists{/gist_id}","starred_url":"https://api.github.com/users/dtrenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtrenz/subscriptions","organizations_url":"https://api.github.com/users/dtrenz/orgs","repos_url":"https://api.github.com/users/dtrenz/repos","events_url":"https://api.github.com/users/dtrenz/events{/privacy}","received_events_url":"https://api.github.com/users/dtrenz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T22:08:38Z","updated_at":"2015-01-30T03:14:49Z","closed_at":null,"body":"If I use the NBAsYouTypeFormatter to format text as it is typed into a UITextField via textField:shouldChangeCharactersInRange:replacementString: there doesn't appear to be any methods that support changing digits in the middle of a phone number string, only support for adding or removing digits from the tail.\r\n\r\nSomething like:\r\n```obj-c\r\n- (NSString *)inputDigit:(NSString *)nextChar atPosition:(NSUInteger)position;\r\n```"},"comment":{"url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/comments/72147659","html_url":"https://github.com/iziz/libPhoneNumber-iOS/issues/43#issuecomment-72147659","issue_url":"https://api.github.com/repos/iziz/libPhoneNumber-iOS/issues/43","id":72147659,"user":{"login":"dtrenz","id":639833,"avatar_url":"https://avatars.githubusercontent.com/u/639833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtrenz","html_url":"https://github.com/dtrenz","followers_url":"https://api.github.com/users/dtrenz/followers","following_url":"https://api.github.com/users/dtrenz/following{/other_user}","gists_url":"https://api.github.com/users/dtrenz/gists{/gist_id}","starred_url":"https://api.github.com/users/dtrenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtrenz/subscriptions","organizations_url":"https://api.github.com/users/dtrenz/orgs","repos_url":"https://api.github.com/users/dtrenz/repos","events_url":"https://api.github.com/users/dtrenz/events{/privacy}","received_events_url":"https://api.github.com/users/dtrenz/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T03:14:49Z","updated_at":"2015-01-30T03:14:49Z","body":"Will that work? How would I use that method to achieve this? I'm not sure I fully understand how inputStringAndRememberPosition: is intended to be used."}}