Google Calendar Mobile Embed

I want to embed the Google calendar in the iphone app, my webview is great, but I can’t get the URL that I need to view the mobile version, without having to log in.

I know its possible how it is done in the twit application (see screenshot below).

How can i do this?

Assume that the general Google calendar has link text and I want to view the Mobile version of this page in UIView.

The mobile view is available in the link text , but you must first log in to your google account.

Stackoverflow Help!

alt text http://posterous.com/getfile/files.posterous.com/norskben/RtIkoblEW9VsBE07dAQy9Sjjo4aRL2yjCRTCIx316y7ovsCXo9iKeGLL1AMx/photo.jpg

+3
source share
1 answer

Now everything is under control. Although I did not find access to the gp mobile view, it turned out that infact is just a normal view on the agenda.

NSString *gcal = [NSString stringWithFormat:@"<html><meta name=\"viewport\" content=\"width=320\"/><iframe src=\"http://www.google.com/calendar/embed?showTitle=0&amp;showNav=0&amp;showTabs=0&amp;showPrint=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=600&amp;wkst=2&amp;hl=en_GB&amp;src=northadelaidefitness@gmail.com&amp;color=%23A32929&amp;ctz=Australia%2FAdelaide\" style=\"border-width: 0pt;\" mce_style=\" border-width:0 \" frameborder=\"0\" height=\"400\" width=\"300\"></iframe>"];

[webview loadHTMLString:gcal baseURL:nil];   //load above html string (notice the viewport=320 for iphone resizing
webview.delegate = self; //add delegate for activity access
webview.scalesPageToFit =YES; //scale nicely
+1
source

Source: https://habr.com/ru/post/1734047/


All Articles