5

I'm trying to use libphonenumber on iOS. I'm using Matt Connolly's libphonenumber-ios from GitHub and I've build boost framework and it's all fine.

Now I can't figure out how to actually use it after I drag libphonenumber.a inside my Xcode project! Any simple usage example along with what headers need to be imported would be great.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Hesham
  • 5,294
  • 3
  • 34
  • 48

1 Answers1

5

How about to use this ?

full port google libphonenumber

https://github.com/iziz/libPhoneNumber-iOS

ishtar
  • 76
  • 1
  • 5
  • I ended up having to implement what I needed on my own. I haven't tried the port on your answer but it looks like what I needed, so I'm going to accept your answer. Thanks. – Hesham Feb 28 '13 at 08:24
  • It seems this does not include the 'AsYouTypeFormatter', which was my main (but not only) reason for trying the Google library. I ended up writing a small wrapper (consisting of a small piece of JavaScript) around the ~200kB JavaScript I built using the supplied instructions and other insights; it was not easy to do. I run it in a hidden `UIWebView` and it all (including AsYouTypeFormatter) works great and very fast. – meaning-matters May 26 '13 at 07:52