title: ios - how to add view dynamically
body: <p>i am new to ios develepoment</p>
  
  <p>i have created a function name list which is called after a button is clicked it should load a view dynamically this is my code </p>
  
  <pre><code>-(IBAction)list:(id)sender{
  
  UIView *listView=[[UIView alloc]initWithFrame:CGRectMake(0,0,1024,786)];
  
  [self.view addSubview:listView];
  }
  </code></pre>
  
  <p>but it does not create any view but it calls this function
  can anyone help me</p>
  
  <p>Thanks.
  Arun</p>