小编dag*_*art的帖子

CALayer位置包含NaN:[nan -0.5]

我在运行应用程序时在控制台中看到此日志:

CALayer position contains NaN: [nan -0.5]
Run Code Online (Sandbox Code Playgroud)

该应用程序包含一个UITaBar第一个选项卡是a UINavigationController.在NavController我发布的AddressBookPicker.在AddressBookPicker我只选择显示电话号码.

当我选择只有电子邮件地址的联系人时,就是当我看到这个日志时.

我没有看到任何崩溃或任何问题,只是打印到控制台上的日志.想要确保这不是一个在发布后崩溃的隐藏问题.

下面是相关代码和堆栈跟踪的片段.不确定要粘贴的代码的其他部分,请告诉我是否有任何可以发布的内容可能有所帮助.

任何帮助/输入赞赏.

谢谢!

ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];

NSArray *displayedItems = [NSArray arrayWithObjects: [NSNumber numberWithInt:kABPersonPhoneProperty]), nil];

picker.displayedProperties = displayedItems;

picker.peoplePickerDelegate = self;

[self presentModalViewController:picker animated:YES];
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪

#0    0x00096377 in NSLog

#1    0x046b38c9 in CALayerSetPosition

#2    0x046b3846 in -[CALayer setPosition:]

#3    0x046b375f in -[CALayer setFrame:]

#4    0x002f510b in -[UIView(Geometry) setFrame:]

#5    0x003dbe6d in -[UILabel setFrame:]

#6    0x023ed095 in -[ABPersonTableViewDataSource …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios4

6
推荐指数
1
解决办法
8146
查看次数

标签 统计

ios4 ×1

iphone ×1

objective-c ×1