转载请注明出处:http://blog.csdn.net/linux_zkf
UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(88, 120, 80, 40)];
label.text = @"test";
[self.view insertSubview:label atIndex:[[self.view subviews] count]];
类似方法
- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview
- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview