I need to draw views after time interval for example creating the first view then wait 5 second and create the other one, I am using this:
-(void) drawView
{
int x=0;
x+=16;
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(x, 580, 16, 25)];
view.backgroundColor = [UIColor blackColor];
[self.view addSubview:view];
}
[self performSelector:@selector(drawView) withObject:nil afterDelay:4];