iOS: Add subview with a fix position on screen

后端 未结 4 1601
执念已碎
执念已碎 2021-01-01 04:17

How do I fix a subviews position on screen (especially in UIScrollView and UITableView)? I think in storyboard

[self.view addSubview:aSubView];
4条回答
  •  难免孤独
    2021-01-01 05:02

    If its a simple view controller which contains a table view, [self.view addSubview:aSubView] should work. But if its a table view controller, it wont work.

提交回复
热议问题