I can't click form in UIWebView (iOS) -


i builing ios app in users swipe left right show uiwebview containing html form , scrollable html element.

however, click in uiwebview rejected. can't click or scroll in it.

how come ?

- (void)viewdidload {    // chat     nsstring *fullurl = @"http://website.com/chat";    nsurl *url = [nsurl urlwithstring:fullurl];    nsurlrequest *requestobj = [nsurlrequest requestwithurl:url];    chat = (uiwebview *)[self.view viewwithtag:101];    [chat loadrequest:requestobj];    chat.frame = cgrectmake(-284, 0, chat.frame.size.width, chat.frame.size.height);     // move uiwebview    uiswipegesturerecognizer * gesturerecognizer = [[uiswipegesturerecognizer alloc] initwithtarget:self action:@selector(movechat:)];    // left or right    [gesturerecognizer setdirection:(uiswipegesturerecognizerdirectionright)|(uiswipegesturerecognizerdirectionleft)];     [self.view addgesturerecognizer:gesturerecognizer]; }  // handle swipe gesture - (void)movechat:(uiswipegesturerecognizer *)recognizer  {     [self displayhidechat]; }  // display chat uiwebview - (void)displayhidechat {     if (chatopened)     {         [uiview beginanimations:nil context:null];         [uiview setanimationdelegate:self];         [uiview setanimationduration:0.3];         [uiview setanimationbeginsfromcurrentstate:yes];         self.view.frame = cgrectmake(self.view.frame.origin.x  - 272,                                      self.view.frame.origin.y,                                      self.view.frame.size.width,                                      self.view.frame.size.height);         [uiview commitanimations];     }     else     {         [uiview beginanimations:nil context:null];         [uiview setanimationdelegate:self];         [uiview setanimationduration:0.3];         [uiview setanimationbeginsfromcurrentstate:yes];         self.view.frame = cgrectmake(self.view.frame.origin.x  + 272,                                      self.view.frame.origin.y,                                      self.view.frame.size.width,                                      self.view.frame.size.height );     }      chatopened = !chatopened; } 


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -