How to center UIActivityIndicator?

前端 未结 5 1793
谎友^
谎友^ 2021-01-05 14:28

SOLVED: Check below for the solution to my problem.

\"enter

Hey SO,

I

5条回答
  •  自闭症患者
    2021-01-05 15:18

    use spinner.center = self.scrollView.center; instead

    try this

    spinner.center = CGPointMake(CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds));

提交回复
热议问题