gpt4 book ai didi

iphone - 数据源方法在 iOS 4.3 中不调用,但在 iOS 5 及更高版本中工作

转载 作者:行者123 更新时间:2023-11-29 04:29:17 25 4
gpt4 key购买 nike

我有一个 UIViewController 对象 VCobject。在我看来,将出现我编写的以下代码的方法。

    VCobject = [[GCView alloc] init]; 

VCobject.dataSource = self;
VCobject.delegate = self;

数据源方法在 iOS 5.0 和 5.1 中调用。但在 iOS 4.3 中不调用。我使用的是 Xcode 4.3.2。

任何人有任何想法,请帮助我。

最佳答案

iOS 5 有 changed the way viewWillAppear is called 。为了确保这是一个案例,请在 viewWillAppear 方法中设置断点。

关于iphone - 数据源方法在 iOS 4.3 中不调用,但在 iOS 5 及更高版本中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11928489/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com