Xcode 在MainStoryBoard里循环显示xib的控件,就是九宫格,怎么再往mainStoryBoard里加入一个Label控件?就是这种效果……我不知道该怎么往里面加一个Label,写个一个方法
-(void)showTagLabelWithName:(NSString *)name{
    UILabel *tagLabel = [[UILabel alloc] init];
    [tagLabel setBackgroundColor:[UIColor grayColor]];
    tagLabel.layer.cornerRadius=10;//设置Label圆角
    tagLabel.text=[NSString stringWithFormat:@"成功下载%@",name];
    tagLabel.textColor=[UIColor redColor];
    NSLog(@"------%@----",tagLabel.text);
    tagLabel.frame=CGRectMake(185, 553, 175, 36);
    [self.view addSubview:tagLabel];
    [self.view bringSubviewToFront:tagLabel];
}在点击下载按钮时调用下面这个方法,-(IBAction)ClickedDown{
    ViewController *view = [[ViewController alloc] init];
    [view showTagLabelWithName:self.nameLabel.text];
    
}运行以后,点击下载按钮,然后就打印输出让它输出的了,但是界面上还是什么都没有。真的不知道是怎么回事……