SergeyM
SergeyM

Reputation: 1

uipopover hides when keyboard shows

i have an UIpopover with UItextfield in it, when i open popover and tap on uitextfield then keyboard shows, but it hide the popover. How can i show keyboard without hiding UIpopover?
i am calling popover in UIWebView because i use cordova 1.8.1, but i tried it in UIView too, and it hides too. here code of calling UIpopover :

if (popEl==nil){
    popEl=[[Popover alloc] init];
}
if (pcs==nil){
    pcs=[[UIPopoverController alloc] initWithContentViewController:popEl];
    pcs.delegate=self;
}
[pcs presentPopoverFromRect:CGRectMake(0, 0, 1, 1) inView:self.webView permittedArrowDirections:UIPopoverArrowDirectionUp animated:NO];

P.S. Sorry for my English, i am from Ukraine.

Upvotes: 0

Views: 1114

Answers (2)

chandru
chandru

Reputation: 417

Your question is that, when U click on the textField the pop over view should appear,right? if yes, then add this code before you add the popoverview,

[textField resignFirstResponder];

Upvotes: 0

Ravi Sharma
Ravi Sharma

Reputation: 975

firstly i recommend you to go through the apple documentation of UIPopOverController

for your problem i think you have to deal with the appearance and disappearance of Keyboard here's the solution to handle this problem Check it

Upvotes: 1

Related Questions