Note that there are some explanatory texts on larger screens.

plurals
  1. POpickerview is not responding to clicks at right side
    primarykey
    data
    text
    <p>i have a picker view which is in text field begin editing method not in viewdidload.if i click or scroll on right side, picker view for row method is not called. </p> <pre><code> - (void)textFieldDidBeginEditing:(UITextField *)textField { viewForValueForPicker = [[UIView alloc]initWithFrame:CGRectMake(60, txtvisitReason.frame.origin.y+txtvisitReason.frame.size.height, 180, 160)]; UIToolbar *toolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(60, 0, 180, 30)]; toolBar.barStyle = UIBarStyleBlackOpaque; UIBarButtonItem *btn = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneBtnPressToGetValue)]autorelease]; [toolBar setItems:[NSArray arrayWithObject:btn]]; [viewForValueForPicker addSubview:toolBar]; pickerView = [[UIPickerView alloc] init]; pickerView.frame=CGRectMake(60, 30, 180, 140); pickerView.delegate=self; pickerView.dataSource=self; pickerView.showsSelectionIndicator=YES; [viewForValueForPicker addSubview:pickerView]; [testscroll addSubview:viewForValueForPicker]; [txtvisitReason resignFirstResponder]; } </code></pre> <p>to know my problem i was implemented gesture recogniser method like this </p> <pre><code> - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { if(touch.view==testscroll)//just checking my touch here { } } </code></pre> <p>now if click on left side my touch is "table view cell content view "and on right side "uiscrollview"instead of "table view cell content view ".if iam scroling at that point my total view scrolls instead of picker view elements. i am not getting any ideas.every where in my app its happening.plz give me an idea. thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload