How to set activity indicator for a view when Click the table cell

前端 未结 3 675
醉酒成梦
醉酒成梦 2021-01-29 12:00

I am developing one iPad application using story board.In my view controller one table is set as the left side and one more view is set as the right side.I need to set one activ

3条回答
  •  臣服心动
    2021-01-29 13:07

    use this in this method didSelectRowAtIndexPath

    UIActivityIndicatorView *activityView = 
    [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
    activityView.frame = CGRectMake(120, 230, 50, 50);
    [self.view addSubview:activityView];
    

提交回复
热议问题