Nslog (@ "loading ");
Uiview * contentview = [[uiview alloc] initwithframe: [uiscreen mainscreen] applicationframe];
Contentview. backgroundcolor = [uicolor bluecolor];
Nslog (@ "self view ");
// View orientation Rotation
Contentview. autoresizingmask = (uiviewautoresizingflexiblewidth | uiviewautoresizingflexibleheight );
Self. view = contentview;
// Set attributes
// Automatically adjust the View Size
Self. View. autoresizessubviews = no;
//
// Create a layer for storing webview
Cgrect webframe = [[uiscreen mainscreen] applicationframe];
Webframe. Origin. Y-= 20.0;
//
Uiwebview * awebview = [[uiwebview alloc] initwithframe: webframe];
Self. webview = awebview;
// Zoom
Awebview. scalespagetofit = no;
// Automatically resize
Awebview. autoresizessubviews = no;
Awebview. autoresizingmask = (uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth );
// [Awebview setdelegate: Self];
Nsurl * aurl = [nsurl urlwithstring: @ "http: // 192.168.1.120/emenu /? TP = tp4 "];
Nsurlrequest * arequest = [nsurlrequest requestwithurl: aurl];
// Send the request
[Awebview loadrequest: arequest];
// Add the webview to the content View
[Contentview addsubview: webview];
[Awebview release];
[Contentview release];