大家帮帮忙,谢谢啦
环境如下:
ViewController的LoadView中写入以下代码-(void)loadView
{
    CGRect rect = [[UIScreen mainScreen]bounds];
    HypnosisView *hyp = [[HypnosisView alloc]initWithFrame:rect];(hyp是一个画圈圈的实例)
    self.view = hyp;
    
    [hyp addSubview:self.segColor];(segColor 是我的一个属性并且和xib中的UIsegmentedControll关联)
  
}问题:
1.我想在View上添加一个UIsegmentedControll,点击不同的value,圈圈可以变颜色,为什么我只能显示圈圈,不显示UIsegmentedControll呢?2.如果我想代码创建UIsegmentedControll,是在loadView中创建么?