iOS - Open PHP url in uiwebview from IBAction -


i have code inside ibaction:

nsstring *strurl = [nsstring stringwithformat:@"http://www.brmyapps.com/folder/folder/registerpost.php?first_name=%@&last_name=%@&titulo_noticia=%@&comments=%@&idpub=%@&dataevento=%@&email=%@", self.textnome.text, self.textimg.text, self.texttitulo.text, self.textnoticia.text, self.textid.text, self.textdata.text, self.textemail.text];  self.awebview = [[uiwebview alloc] initwithframe:cgrectmake(0, 0, 0, 0)];  self.awebview.autoresizessubviews = yes; self.awebview.autoresizingmask=(uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth);  [self.awebview setdelegate:self]; nsstring *urladdress = strurl; // test view working url webpage   nsurl *url = [nsurl urlwithstring:urladdress];  nsurlrequest *requestobj = [nsurlrequest requestwithurl:url];  [self.awebview loadrequest:requestobj];  uiview *view = [[uiview alloc] initwithframe:cgrectmake(0, 0, 0, 0)]; [[self view] addsubview:_awebview]; 

my problem when click in button, opens uiwebview php url want open send data php not loading. blank page showed.

how can solve this?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -