In case of your code will create the new textView
as you required but it will overlap the last one so you can see that new . you need to create int y variable
increase the value everytime then will change the y codinate
of your textView
.
-(IBAction)addTView:(id)sender {
UITextView *newTextView =[[UITextView alloc]init];
newTextView.frame=CGRectMake(0,y,100,100);
[textView addSubview:newTextView];
newTextView.delegate=self;
[newTextView release];
y = y + 100;
}
then add it On your View where you want to add using [self.view addSubView: yourView]