H
@property (nonatomic, strong) IBOutlet UIScrollView *itemsContainer;
@property (nonatomic, strong) UIScrollView *itemsContainerDefaults;
米
- (void)awakeFromNib
{
self.itemsContainerDefaults = [self.itemsContainer copy]; // breaks here
}
安慰
2013-02-27 19:09:07.585 Test App[2038:907] -[UIScrollView copyWithZone:]: unrecognized selector sent to instance 0x1ddcde60
2013-02-27 19:09:07.586 Test App[2038:907] Uncaught exception: -[UIScrollView copyWithZone:]: unrecognized selector sent to instance 0x1ddcde60
2013-02-27 19:09:07.601 Test App[2038:907] Stack trace: ( ... )
我正在尝试复制itemsContainer
到,itemsContainerDefaults
但我在日志中收到错误。为什么这不起作用?