Using Youtube in iPhone
I have never use youtube 开发者_开发百科api in iPhone ...I tried to use GData but was missed in some steps here are link ans tutorial ....So never implemented it...
Due to which i used RSS feed and load it on tableView ... and when user click on any row then the actual webPage opens in WebView and user have to click on the video to run it....
But now i don't want this ....
Can anyone provide me a better solution.... Thanks...
As I have given a brief answer here
I am explaining it in detail:
- Put a button of same size and without any background image over your webview.
- When the user presses this button open a new modal view with only a full screen size webview in it.
- Pass the same html string to load the webview (that you were passing in your smaller webview).
Pass the touches programmatically to the webview like:
– (void) touchTheWebViewProgrammatically{
for(UIView* vw in [webView subviews]){ if([vw isKindOfClass:[UIButton Class]]) [vw sendActionsForControlEvents:UIControlEventAllEvents]; }
}
精彩评论