标签: ios objective-c xcode instruments
我正在使用Xcode Instruments Time Profiler来分析一些Objective-C代码,而self.tbNavigationItem.tbNavibarRightItem = nil;语句花费的时间比self.tbNavigationItem.tbNavibarRightItem = [[TBBarButtonItem alloc] initWithCustomView:settingBtn];更长,任何人都可以解释?
self.tbNavigationItem.tbNavibarRightItem = nil;
self.tbNavigationItem.tbNavibarRightItem = [[TBBarButtonItem alloc] initWithCustomView:settingBtn];