Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用容器在其上显示 UIPageViewController。正如您在我的图像中看到的那样,我在导航栏下方有一个灰色栏,上面有一个白色标签。我想在“页面滚动视图控制器”中更改这个标签,我该怎么做?
你有没有把它UILabelView和房产联系起来ViewController?如果没有,那么你必须先这样做。
UILabelView
ViewController
像这样声明属性:
@property (weak, nonatomic) IBOutlet UILabel *blablabla;
现在,将该属性连接到插座后。您可以通过ViewController以下方式访问它:
self.blablabla.text = @"your text goes here";
如果您遇到任何问题,请告诉我!