开发应用程序与iOS开发差异解析
开发应用程序相关代码与操作
在开发应用程序时,首先需要设置排序描述符。以下是相关代码:
// setup the sort descriptors
// remember to trigger KVO notifications so the relevant controllers can be
// updated-- they’re already bound by this point
if ( _personSortDescriptors == nil )
{
[self willChangeValueForKey: @"personSortDescriptors"];
_personSortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey: @"lastName"
ascending: YES]];
[self didChangeValueForKey: @"personSortDescriptors"];
}
if ( _labelSortDescriptors == nil )
{
[self willChangeValueForKey: @"labelSortDescriptors"];
_labelSortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey: @"label"
超级会员免费看
订阅专栏 解锁全文
881

被折叠的 条评论
为什么被折叠?



