1 step forward 2 steps back…
Well I started today trying to figure out what I needed to do by looking into some of the methods I would need to implement. Unfortunately it seems having a progress meter in a web view is not possible without making private calls.
So basically safari can do it, but I can’t. So I reworked how I wanted my UI to be and think it will still work, it is just really surprising when you see what should be something relatively simple ends up not being possible. Honestly Apple needs to use there own sdk for all there apps on the iPhone. This would provide third party developers with many needed routines that we just aren’t allowed to implement at this point.
Anyway I made a quick project to see if pinch and zoom would work in a web view. I hit a big problem, xcode was no longer allowing me to run things on my phone, so I started seeing what went wrong with my certificate. Something in my keychain broke and I had some weird entry as the default. I couldn’t delete it. I don’t know what caused it either. It was caused by updating to 10.5.7 or updating Coda. I do remember getting some weird error last night about keychain not being found and did I want to create a new one. I answered no, but anyway it apparently screwed things up. So in keychain access I tried a lot of stuff, finally I noticed a repair option in the menu. My keychain was definitely broken and running repair a few times seemed to fix it. But now after fooling with my certificates I must have broken something because it still wasn’t letting me write to the phone. So I deleted all my certificates and went back to apple and regenerated them all and reinstalled everything now I am back to square one. I did learn a couple of things. One xcode only looks for your certificate in your default keychain. Two you need to set “login” in your keychain as default and make sure your certificate is in the tree under a user login name in the “logins” section. It will also appear in certificates in your keychain access. Finally Clean all targets removes all the precompiled stuff out which can help if you are having weird trouble.
Next in order to zoom on UIWebView you need to set two things. In IB you need to make sure your views can accept multitouch. Second and this is what had me stuck. Make sure you check the checkbox scale web pages to fit checkbox in the webview. If you don’t do that it can’t zoom in and out. Weird….