Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to overwrite ScrollView content in ios or change focus
    primarykey
    data
    text
    <p>I'm beginner in ios .... In One of my activity I have created Custom <code>scrollView</code> and on it I have created Some custom <code>textField</code> ..Now when we click on <code>textField</code> then my custom <code>tableView</code> opens but this table mixup with already existing <code>textField</code> ....If I add this table on <code>UIView</code> then it does not scroll ......so how to overwrite on scroll view <code>textField</code> and scroll tabel with <code>textField</code>.....I Have Declared all <code>table delegates</code> and table appears properly but on scroll problem occur ....</p> <pre><code>scrollview=[[UIScrollView alloc]initWithFrame:CGRectMake(0,60,320,540)]; [scrollview setContentSize:CGSizeMake(800,1500)]; scrollview.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight); scrollview.autoresizesSubviews = YES; scrollview.scrollEnabled = YES; scrollview.delegate = self; scrollview.directionalLockEnabled = YES; scrollview.showsVerticalScrollIndicator = YES; scrollview.showsHorizontalScrollIndicator = YES; scrollview.autoresizesSubviews = YES; scrollview.backgroundColor=[UIColor whiteColor]; [self.view addSubview:scrollview]; AdviseDr=[[UITextField alloc]initWithFrame:CGRectMake(150,110,140,30)]; AdviseDr.font = [UIFont boldSystemFontOfSize:15.0]; AdviseDr.borderStyle = UITextBorderStyleLine; AdviseDr.clearButtonMode = UITextFieldViewModeWhileEditing; AdviseDr.delegate =self; AdviseDr.tag=1; [scrollview addSubview:AdviseDr]; table_AdviseDoctor=[[UITableView alloc]initwithframe:CGRectMake(150,200,170,200)style:UITableViewStylePlain]; table_AdviseDoctor.delegate=self; table_AdviseDoctor.dataSource=self; table_AdviseDoctor.layer.borderWidth = 2.0; table_AdviseDoctor.layer.borderColor = [UIColor grayColor].CGColor; [self.view addSubview:table_AdviseDoctor]; table_AdviseDoctor.hidden=YES; Medicalfacility=[[UITextField alloc]initWithFrame:CGRectMake(150,150,170,30)]; Medicalfacility.font = [UIFont boldSystemFontOfSize:15.0]; Medicalfacility.borderStyle = UITextBorderStyleLine; Medicalfacility.delegate =self; Medicalfacility.tag=2; [scrollview addSubview:Medicalfacility]; [Medicalfacility addTarget:self action:@selector(btnpress1:)forControlEvents:UIControlEventEditingDidBegin]; </code></pre>
    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.
 

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