UIView 删除 多少秒后执行

UIView *view = [UIView new];
[view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2];

//两秒后执行删除view

编程技巧