How to combine UIScrollview with UIPagecontrol to show different views?

前端 未结 4 1302
刺人心
刺人心 2021-02-06 14:59

I\'ve searched and searched for a tutorial for this but none of them are what I\'m looking for. I\'ve tried Apple\'s sample but it is just colors and I don\'t know how to make i

4条回答
  •  时光说笑
    2021-02-06 15:47

    Here's another answer...

    NSArray* nibViews =  [[NSBundle mainBundle] loadNibNamed:@"Views" owner:self options:nil];
    infoView = [nibViews objectAtIndex:0];
    [self.view addSubview:infoView];
    

    Then you have your view.

    Cheers

提交回复
热议问题