ios - Embedded timeline widget of Twitter not working -
i created twitter widget , plugged app. have integrated html code in uiwebview i.e.
nsstring *html="<html><body><a class=\"twitter-timeline\" href=\"https://twitter.com/xxxxxxxxx/xxxxxxxx" data-widget-id=\"xxxxxxxxxxxxxxxxxxx\" height=\"532\"></a><script>!function(d,s,id){var js,fjs=d.getelementsbytagname(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getelementbyid(id)){js=d.createelement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentnode.insertbefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script></body</html>" [self.webview loadhtmlstring:html baseurl:nil];
it works fine on ios > 6.0 not work ios < 6.0.
any appreciated.
thanks,
siddharth chopra
sorry haven't ios < 6.0 simulators test it, think there problems browser(safari) , can debug javascript inside of uiwebview. here how debug javascript inside webview
Comments
Post a Comment