ishkawa / ISColumnsController

paginated container view controller.
106 stars 19 forks source link

unrecognized selector sent to instance #5

Closed sharp closed 11 years ago

sharp commented 11 years ago

2012-10-12 22:34:57.528 Columns[27045:f803] -[ISColumnsController setScrollView:]: unrecognized selector sent to instance 0x685d3a0 2012-10-12 22:34:57.531 Columns[27045:f803] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ISColumnsController setScrollView:]: unrecognized selector sent to instance 0x685d3a0' * First throw call stack: (0x1285022 0x183dcd6 0x1286cbd 0x11ebed0 0x11ebcb2 0x3578 0x28b99b 0x2be3 0x1d54 0x1c2386 0x1c3274 0x1d2183 0x1d2c38 0x1c6634 0x2178ef5 0x1259195 0x11bdff2 0x11bc8da 0x11bbd84 0x11bbc9b 0x1c2c65 0x1c4626 0x1c32 0x1ba5) terminate called throwing an exception(lldb)

ishkawa commented 11 years ago

I did not implement accessor manually because it is not required in modern Objective-C. Auto-sythesize is a feature of "Apple LLVM compiler 4.1" (supported Xcode 4.4 or later).

If you want to work with other compiler (ex. LLVM GCC 4.2), just implement accessor

@synthesize viewControllers = _viewControllers;
@synthesize scrollView      = _scrollView;
@synthesize titleLabel      = _titleLabel;
@synthesize pageControl     = _pageControl;
sharp commented 11 years ago

Thanks, it's great!